[SOLVED] Photoshop PSD thumbnail problems

morten

Joined: 2005-03-28
Posts: 5
Posted: Mon, 2005-03-28 17:10

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):

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-03-28 21:03

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.

 
morten

Joined: 2005-03-28
Posts: 5
Posted: Mon, 2005-03-28 21:07

Ok, I know what command to run to get the right thumbnail, but where do I set it ?

/Morten

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-03-28 21:19

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.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-03-28 21:30

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?

 
morten

Joined: 2005-03-28
Posts: 5
Posted: Tue, 2005-03-29 06:41

Ok, I did turn "viewable" on... And unchecking it did the trick. (thought the "viewable" tag had another function )

Thanks for your help :-)

/Morten

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-03-29 16:42

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.