hey,
im a newbie to imagemagick and how it should be configured in order to run properly.
To make things brief, i am using imagemagick to allow the phpthumb script to create thumbs from various file types.
i need this working for a web application that has an image uploader.
the image uploader after uploading should give you a preview of the image. it seems to work fine with many file types except TIFF, it returns no image preview...
so im guessing phpthumb does not return a thumbnail when it is referring to a TIFF picture.
I've been researching for the past 2 days and found out that i need to activate a certain TIFF library for this operation to work.
I downloaded the tiff library (tiff 3.9.1) from http://www.imagemagick.org/download/delegates/ but i have NO CLUE how to get it running with ImageMagick. IF anyone can help me do that, i would greatly appreciate it!!
i went into command line and typed identify -list list, and saw that there seems to be a library already identified with TIFF, these are the lines i'm getting:
TIFF* TIFF rw+ Tagged Image File Format (LIBTIFF, Version 3.9.0beta)
TIFF64* TIFF --- Tagged Image File Format (64-bit) (LIBTIFF, Version 3.9.0beta)
Does this mean i have TIFF supported? is there a certain configuration or something that has to do with pointing ImageMagick to the tifflib directory that i have to do?
is there a dll or something that would replace manually having to input directories or something of the sort?
Im using:
ImageMagick-6.4.5-8-Q16-windows-dll (directory: C:\imagemagick)
phpthumb 1.7.9
if anyone knows anything about this, or can point me in the right direction, or can generouslty give me a step-by-step way to activate this... i would be very grateful...
thank you
HELP!! phpthumb not generating thumbnails for TIFF images
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: HELP!! phpthumb not generating thumbnails for TIFF images
I am not an expert on these things, but some things to look into:
1) you seem to have Tiff support but not Tiff64 (as it does not say RW+), so if your tiff files that you are making or using are Tiff64, that would fail
2) another way to see what delegates you have installed that IM knows about is to use
convert -list configure
and look at the line starting with DELEGATES. It should list tiff. Here is mine.
DELEGATES bzlib fftw fontconfig freetype gs jpeg jng jp2 lcms lqr openexr png tiff x11 xml zlib
3) When you install any delegate library, you need to be sure there are no errors or other support libraries that are needed. Look for error messages when compiling them.
4) Reinstall IM after you install the delegates and check the convert -list configure to be sure they are listed and check the convert -list type to see that it has rw+
5) Upgrade IM and your tiff delegate library if possible
6) Are you sure that the tiff file gets uploaded? If so, you need to verify that it is a valid tiff. Look at the verbose information for anything odd
7) I don't know that tif files can be displayed directly in your browser. Verify that you can do that? It may be some odd format tiff that does not display or tifs may not display at all in browsers?
identify -verbose image.tif
7) Check permission on your directories.
1) you seem to have Tiff support but not Tiff64 (as it does not say RW+), so if your tiff files that you are making or using are Tiff64, that would fail
2) another way to see what delegates you have installed that IM knows about is to use
convert -list configure
and look at the line starting with DELEGATES. It should list tiff. Here is mine.
DELEGATES bzlib fftw fontconfig freetype gs jpeg jng jp2 lcms lqr openexr png tiff x11 xml zlib
3) When you install any delegate library, you need to be sure there are no errors or other support libraries that are needed. Look for error messages when compiling them.
4) Reinstall IM after you install the delegates and check the convert -list configure to be sure they are listed and check the convert -list type to see that it has rw+
5) Upgrade IM and your tiff delegate library if possible
6) Are you sure that the tiff file gets uploaded? If so, you need to verify that it is a valid tiff. Look at the verbose information for anything odd
7) I don't know that tif files can be displayed directly in your browser. Verify that you can do that? It may be some odd format tiff that does not display or tifs may not display at all in browsers?
identify -verbose image.tif
7) Check permission on your directories.
Re: HELP!! phpthumb not generating thumbnails for TIFF images
hey fmw42
thank you for the reply, this is what i came up with:
1) the files im using are regular TIFF files, so its not a TIFF64 issue...
2) my DELEGATES show that i have tif installed.. my delegates are : DELEGATES bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib
3) do you know where i can find the necessary support libraries needed for the tiff library to work?
4)
5) IM is the latest, i dunno about my delegates though
6) the tiff file is being uploaded, i can find it in the folder directory its supposed to end up in, but there is no generation of a thumb file in the thumbs folder i have... maybe its a phpthumb issue?
7) i dont want to display tiff directly in my web browser, im aware that its not possible.. my problem is that it seems the tiff file i want to create a thumbnail from is not being read or something like that....
i gave permissions to all the folders necessary.. also nothing
theres the issue with environment variables. i know that i should set some user and system paths in there relating to imagemagick, the ones i have put in there are MAGICK_CONFIGURE_PATH and MAGICK_HOME.. is there anything i missed?
please if there are any steps i did wrong or anything i missed out...
thanks again
thank you for the reply, this is what i came up with:
1) the files im using are regular TIFF files, so its not a TIFF64 issue...
2) my DELEGATES show that i have tif installed.. my delegates are : DELEGATES bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib
3) do you know where i can find the necessary support libraries needed for the tiff library to work?
4)
5) IM is the latest, i dunno about my delegates though
6) the tiff file is being uploaded, i can find it in the folder directory its supposed to end up in, but there is no generation of a thumb file in the thumbs folder i have... maybe its a phpthumb issue?
7) i dont want to display tiff directly in my web browser, im aware that its not possible.. my problem is that it seems the tiff file i want to create a thumbnail from is not being read or something like that....
i gave permissions to all the folders necessary.. also nothing
theres the issue with environment variables. i know that i should set some user and system paths in there relating to imagemagick, the ones i have put in there are MAGICK_CONFIGURE_PATH and MAGICK_HOME.. is there anything i missed?
please if there are any steps i did wrong or anything i missed out...
thanks again
Re: HELP!! phpthumb not generating thumbnails for TIFF images
hey thanks for all the help, the issue was resolved it was an internal coding issue, nothing to do with imagemagick