I am having some problems getting thumbnails from Photoshop (PSD) files.
When I upload a PSD file, gallery does create a thumbnail image, but it cannot use it (because the thumbnail is still psd, not jpg)
Gallery runs this command when I upload the image:
Quote:
"C:\Program Files\ImageMagick-6.2.1-Q16\convert" "-size" "150x150" "-geometry" "150x150" "-strip" "D:\stock_data\...pathtofile\filename.psd" "D:\stock_data\tmp\img1F47.tmp"
When I run thsi command in a console, it creates a psd file at 150x150 pixels.
If I change the command to have "jpeg:" in front of the output-filename, it does create a jpg.
Is this a bug in gallery (imagemagick module) or should I correct a setting somewhere?
/Morten
----
Gallery version: CVS from 2005-03-26
Webserver (with version): Apache 2.0.49 Win32
Datatabase (with version): Mysql 4.1
PHP version (eg 4.2.1): 4.3
phpinfo URL (optional):
Graphics Toolkit(s): GD, ImageMagick, FFmpeg
Operating system: Win32
Web browser/version: Firefox 1.02
G1 version (for migration bugs):
Posts: 8601
Here's what I got for thumbnail creation from a psd file:
"/usr/local/bin/convert" "-quality" "75" "/path/to/g2data/cache/derivative/4/3/43567.dat[3]" "jpeg:/path/to/g2data/tmp/imgk_mA5Cok"
i also used the thumbpage module to pick the 4th layer for the thumb; that's where the [3] came from.
Posts: 5
Ok, I know what command to run to get the right thumbnail, but where do I set it ?
/Morten
Posts: 8601
activate the mime module and add an entry for application/photoshop mime type and make sure it is not set to viewable. looks like this mime type somehow got dropped from our default list.
Posts: 8601
just checked and is-viewable defaults to false so that shouldn't be the problem.. you didn't add an entry with viewable=true did you?
Posts: 5
Ok, I did turn "viewable" on... And unchecking it did the trick. (thought the "viewable" tag had another function )
Thanks for your help
/Morten
Posts: 8601
yes, we should explain that better.. "viewable" here means "viewable in a browser".. since you had it checked then G2 decides it can just make the psd file smaller in dimensions but not change the format when buliding the thumbnail.. if the type is not viewable it attempts to also change the type to jpeg.