4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: alex26 on January 23, 2003, 10:15:14 PM

Title: How about IMAGEMAGICK GUIDE LINES.
Post by: alex26 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?
Title: How about IMAGEMAGICK GUIDE LINES.
Post by: SLL 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...
Title: yes.. the convert comand works..
Post by: alex26 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..
Title: How about IMAGEMAGICK GUIDE LINES.
Post by: SLL on January 23, 2003, 11:26:38 PM
Didn't you try to set GD as "Conversion tool for thumbnails" in 4images?
Title: gd
Post by: alex26 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.
Title: Has anyone found a solution
Post by: indirectobject on January 24, 2003, 12:54:22 AM
Greetings,

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

Thanks
Title: Re: gd
Post by: SLL 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
Title: Re: How about IMAGEMAGICK GUIDE LINES.
Post by: dannyb 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'];
//    }
Title: How about IMAGEMAGICK GUIDE LINES.
Post by: V@no 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.
Title: How about IMAGEMAGICK GUIDE LINES.
Post by: dannyb 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 ?