Author Topic: How about IMAGEMAGICK GUIDE LINES.  (Read 11257 times)

0 Members and 1 Guest are viewing this topic.

Offline alex26

  • Pre-Newbie
  • Posts: 4
    • View Profile
How about IMAGEMAGICK GUIDE LINES.
« on: January 23, 2003, 10:15:14 PM »
I have been reading and reading and reading some more.  So far many people seem to have the same problems...   I have a problem getting IMAGEMAGICK to work also. I don't get a error just a blank page that sits there.  I have tried everything the forum said.

I am running   w2k server, with IIS 5

      *I Installed PHP  4.3.0-installer.exe
            With Microsoft iis 4 or higher option
            As well the Directory has uploadtemp\iuser access
      *I installed ImageMagick-i686-pc-windows.exe
            Install dir was  c:\imagemagick\
      *I installed  mysql-3.23.54-win
      *4images has ability to IUSER read and write to DATA directory

   When I ran the 4images install.php  I made sure that the IUSER could access everything. The install was fast and everything worked.

I have setings  imagemagick:
c:\imagemagick\convert.exe

Is there something else I should be installing to make this work??
Is there a list of things to install?

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
How about IMAGEMAGICK GUIDE LINES.
« Reply #1 on: January 23, 2003, 10:35:28 PM »
It's very simple to check if ImageMagic itself works on your system. Just try it from the command prompt: convert.exe -resize 100x100 yourimage.jpg newimage.jpg

If you find newimage.jpg in this directory, 100x100 px size, then your problem is not with ImageMagic...

Offline alex26

  • Pre-Newbie
  • Posts: 4
    • View Profile
yes.. the convert comand works..
« Reply #2 on: January 23, 2003, 11:09:44 PM »
yep.. I have tried that.. and it works perfect..   even the the path is set so it works in all dirs.   still in the my 4images web I can't generate any thumbs.  or even see anything on the page for that matter..

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
How about IMAGEMAGICK GUIDE LINES.
« Reply #3 on: January 23, 2003, 11:26:38 PM »
Didn't you try to set GD as "Conversion tool for thumbnails" in 4images?

Offline alex26

  • Pre-Newbie
  • Posts: 4
    • View Profile
gd
« Reply #4 on: January 23, 2003, 11:42:10 PM »
well not to sound stupid... I have tried to go to the site to get GD... so far.. I have no idea what they want you to install..

if I pick GD.. I get

GD library error.
Check module settings.

Offline indirectobject

  • Pre-Newbie
  • Posts: 2
    • View Profile
Has anyone found a solution
« Reply #5 on: January 24, 2003, 12:54:22 AM »
Greetings,

I am having the same problem. Has a solution been found?

Thanks

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
Re: gd
« Reply #6 on: January 24, 2003, 09:04:32 AM »
Quote from: alex26
if I pick GD.. I get
GD library error.
Check module settings.

GD library is a part of your PHP installation. Check your php.ini... Since you're running PHP under Windows, just uncomment one line in php.ini (I'd recommend GD2)
Quote
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example, on Windows:
;
;   extension=msql.dll
;
; ... or under UNIX:
;
;   extension=msql.so
;
; Note that it should be the name of the module only; no directory information
; needs to go here.  Specify the location of the extension with the
; extension_dir directive above.


;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
extension=php_gd2.dll
;extension=php_gd.dll

If for some reason you don't have this DLL, download in at http://www.coupin.net/gd-freetype/php_gd2.zip

Offline dannyb

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: How about IMAGEMAGICK GUIDE LINES.
« Reply #7 on: February 17, 2003, 02:08:17 PM »
Quote from: alex26
I have been reading and reading and reading some more.  So far many people seem to have the same problems...   I have a problem getting IMAGEMAGICK to work also. I don't get a error just a blank page that sits there.  I have tried everything the forum said.

Is there something else I should be installing to make this work??
Is there a list of things to install?


I had the same problem on the same configuration. After some research I found out that php for win32 doesn't  support the function "is_executable"

see http://www.php.net/manual/en/function.is-executable.php

It is used in includes/image_utils.php :

Code: [Select]

  switch($config['convert_tool']) {
  case "im":
    $convert_options['convert_path'] = check_executable($convert_options['convert_path']);
    $convert_options['convert_path'] = preg_replace("/".check_executable("mogrify")."$/i", check_executable("convert"), $convert_options['convert_path']);
    if (!@is_executable($convert_options['convert_path'])) {
      $convert_options['convert_error'] = "<b class=\"marktext\">".$lang['im_error']."</b><br />\n".$lang['check_module_settings'];
    }
    break;


there is a @ in front of it so it will not show an error about function not found...  when you comment out these 3 lines it will work!

Code: [Select]

//   if (!@is_executable($convert_options['convert_path'])) {
//      $convert_options['convert_error'] = "<b class=\"marktext\">".$lang['im_error']."</b><br />\n".$lang['check_module_settings'];
//    }

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
How about IMAGEMAGICK GUIDE LINES.
« Reply #8 on: February 17, 2003, 05:52:04 PM »
PHP v4.3 doesnt support it, but v4.2.3 worsk just fine.
I noticed, that many scripts that I tryed were working fine with v4.2.3, but quit working after upgrading PHP to v4.3

So far, I'll stick with v4.2.3 that is more campatible.
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)

Offline dannyb

  • Pre-Newbie
  • Posts: 5
    • View Profile
How about IMAGEMAGICK GUIDE LINES.
« Reply #9 on: February 18, 2003, 11:59:58 AM »
Quote from: V@no
PHP v4.3 doesnt support it, but v4.2.3 worsk just fine.
I noticed, that many scripts that I tryed were working fine with v4.2.3, but quit working after upgrading PHP to v4.3

So far, I'll stick with v4.2.3 that is more campatible.


On my Linux computer it works fine (php 4.3) ;) so it is only on the windows version I presume ?