problems with imagemagick and jpegtran

mathias

Joined: 2003-09-06
Posts: 2
Posted: Sat, 2003-09-06 22:27

Hi folks!
I have some problems to get "Gallery Remote" running with ImageMagick and jpegtran support :(

1008|INFO |ImageUtils|useIM: true
1008|INFO |ImageUtils|imPath: /usr/bin/convert
1013|TRACE|ImageUtils|Executing /usr/bin/convert -size 128x128 -filter Box "img/default.gif" -resize "128x128"  +profile "*" /tmp/thumbs/thumb28890.jpg 1082|TRACE|ImageUtils|Returned with value 1
1082|CRITI|ImageUtils|ImageMagick doesn't seem to be working. Disabling
$ /usr/bin/convert -size 128x128 -filter Box "img/default.gif" -resize "128x128"  +profile "*" /tmp/thumbs/thumb28890.jpg
$ echo $?
0

jpegtran is also disabled at startup, but as standalone application it works fine too!
Ideas?

My jpegtran/jpegtran file:

# should jpegtran support be enabled?
enabled=true

# path to the executable (must be a fully-qualified path)
jpegtranPath=/usr/bin/jpegtran

And my imagemagick/im.properties file:

# should ImageMagick support be enabled?
enabled=true

# path to the convert executable installed with ImageMagick
imConvertPath=/usr/bin/convert

# Filters
#    Point
#    Box
#    Triangle
#    Hermite
#    Hanning
#    Hamming
#    Blackman
#    Gaussian
#    Quadratic
#    Cubic
#    Catrom
#    Mitchell
#    Lanczos		Default
#    Bessel
#    Sinc

# filter used for resize of thumbnails
imThumbnailResizeFilter=Box

# filter used for resize of preview
imPreviewResizeFilter=Lanczos

# filter used for resize of upload
imUploadResizeFilter=Lanczos

# Formats
#    jpg			Better for large images
#    gif			Better for small images (8-bit)

# filter used for resize of thumbnails
imThumbnailResizeFormat=gif

# filter used for resize of preview
imPreviewResizeFormat=jpg
 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2003-09-08 19:02

Very strange!! Which version of Java is that on?

 
mathias

Joined: 2003-09-06
Posts: 2
Posted: Fri, 2003-09-12 11:02

$ java -version
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.1-01)
Java HotSpot(TM) Client VM (build Blackdown-1.4.1-01, mixed mode)

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Sun, 2003-09-21 18:02

OK. I've assumed that this is a Linux-specific bug, and I have added to GR 1.2 betas a flag in the im.properties and jpegtran.properties that instructs GR to disregard the error code returned by these applications.

This is set by default to false on Windows, and you probably need to set it to true on Linux.

Can you try it out? Thanks.