4images Forum & Community

4images Help / Hilfe => Bug Fixes & Patches => Topic started by: V@no on March 12, 2005, 08:02:20 PM

Title: [1.7 / 1.7.1] Blank page when trying create thumbnails.
Post by: V@no on March 12, 2005, 08:02:20 PM
On windows systems when ImageMagick or NetPBM used, a blank page displays when one trying create thumbnails or resize images through ACP (Admin Control Panel)

To fix that open includes/image_utils.php
Find:
Code: [Select]
    if (!@is_executable($convert_options['convert_path'])) {Replace with:
Code: [Select]
/*
  FIX BLANK PAGE ON WINDOWS SYSTEMS
  ORIGINAL CODE:
    if (!@is_executable($convert_options['convert_path'])) {
*/
    if (function_exists('is_executable') && !@is_executable($convert_options['convert_path'])) {
(when ImageMagick used)

Find:
Code: [Select]
    if (!@is_executable($convert_options['convert_path']."/".check_executable("pnmscale"))) {Replace with:
Code: [Select]
/*
  FIX BLANK PAGE ON WINDOWS SYSTEMS
  ORIGINAL CODE:
    if (!@is_executable($convert_options['convert_path']."/".check_executable("pnmscale"))) {
*/
    if (function_exists('is_executable') && !@is_executable($convert_options['convert_path']."/".check_executable("pnmscale"))) {
(when NetPBM used)