Author Topic: [1.7 / 1.7.1] Blank page when trying create thumbnails.  (Read 18870 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[1.7 / 1.7.1] Blank page when trying create thumbnails.
« 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)
« Last Edit: March 13, 2005, 03:37:23 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)