Jpegtran could not be found

crux19

Joined: 2003-11-04
Posts: 94
Posted: Mon, 2006-04-10 16:03

Hello,
I recently upgraded to Gallery 2.1. Everything works fine, but I would like to get jpegtran working correctly. I have searched the forums and also searched for "gallery remote known problems."

When I go to the Upload Applet, I get the message that jpegtran could not be found. I know it's not a big deal, but would like to get it worked out. It appears there is a link to follow, but I'm not able to click on it. I searched my FreeBSD box and jpegtran is installed in /usr/local/bin/jpegtran. I'm not able to find a place in Gallery Admin to configure this location.

Help greatly appreciated!

Gallery version = 2.1 core 1.1.0
PHP version = 4.3.11 apache
Webserver = Apache/1.3.33 (Unix) PHP/4.3.11
Database = mysqlt 4.1.12, lock.system=flock
Toolkits = Exif, Thumbnail, ArchiveUpload, Ffmpeg, NetPBM, ImageMagick
Acceleration = partial/21600, partial/21600
Operating system = FreeBSD localhost.localdomain 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005

:/usr/obj/usr/src/sys/GENERIC i386
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

 
Chris Dollis
Chris Dollis's picture

Joined: 2006-04-13
Posts: 4
Posted: Thu, 2006-04-13 03:09

I am having the exact same problem. If you can help, please do! You can send me a private message and I'll gladly reply or research your suggestions and implement them.

Thank you!

--
My blog is devoted to the woman I love, Jacqui, and our relationship while she lives in Australia and I live in Canada. Our goal is to meet, love, and build. Leave us a quick word of support! lovingjacqui.net

 
crux19

Joined: 2003-11-04
Posts: 94
Posted: Thu, 2006-04-13 15:57

Hmmm, it seems that the error could be directed at the client computer, not the server? I have read that the applet should download jpegtran automagically to a Windows environment (which I am running). So, if this is the case, why the error?

Thanks!

 
Chris Dollis
Chris Dollis's picture

Joined: 2006-04-13
Posts: 4
Posted: Thu, 2006-04-13 22:26

I believe I have found a temporary solution, so good that for practical purposes it might as well be permanent!

I have no idea what benefits jpegtran offers. Not to knock it, I'm sure that it's wonderful; however, it doesn't work in the version of Gallery (2.1) I'm running so let's move on and disable it. You can always enable it again later.

What you can do is this:

1. login
2. go to "Site Admin"
3. under "Admin Options" on the left under "Display" select "Slideshow Applet"
4. underneath "Overrides" add the new variable "jp.enabled=false"
5. result? the error message is gone, slideshow now works in full screen, and these two taken together are good enough for me

I hope this helps!

If it does, and you feel like expressing any thanks, please do me a personal favour, visit my lovingjacqui.net blog, and leave a comment for myself or my honey bear.

--
My blog is devoted to the woman I love, Jacqui, and our relationship while she lives in Australia and I live in Canada. Our goal is to meet, love, and build. Leave us a quick word of support! lovingjacqui.net

 
Chris Dollis
Chris Dollis's picture

Joined: 2006-04-13
Posts: 4
Posted: Thu, 2006-04-13 22:33

I've also learned you'll then have to add the override value "im.enabled=false" since "ImageMagick" appears to be the program that is supposed use jpegtran. Once you disable these two optional values, everything should work.

--
My blog is devoted to the woman I love, Jacqui, and our relationship while she lives in Australia and I live in Canada. Our goal is to meet, love, and build. Leave us a quick word of support! lovingjacqui.net

 
crux19

Joined: 2003-11-04
Posts: 94
Posted: Thu, 2006-04-13 22:46

Thanks. When doing this, I came across the link from that same page:
http://cvs.sourceforge.net/viewcvs.py/*checkout*/gallery/gallery_remote/defaults.properties

which had the comment:
# path to the executable
jp.path=

I wonder where you set this and if this would actually help out vs disabling the functionality?

 
crux19

Joined: 2003-11-04
Posts: 94
Posted: Thu, 2006-04-13 22:58

I put the variable jp.path in and pointed it to the location of my jpegtran file on my FreeBSD system. No luck. I also tried your suggestion with the overrides - did you mean in the "Upload Applet" section or in the "Slideshow Applet" section? I tried setting the variable in the "Upload Applet" section since that's where I get the error. I tried both FF and IE with the same issue. I did a search on this forum for jp.path and it came back with tons of results that didn't have the string in the post.

 
crux19

Joined: 2003-11-04
Posts: 94
Posted: Thu, 2006-04-13 23:08

So, after playing around, here is the work around for me -
I went to the "Upload Applet" section under administration and added this variable
suppressWarningJpegtran=true

This doesn't fix the issue, but it keeps my users from thinking something is wrong my not displaying the message. If anyone comes up with a way to actually get the jpegtan utility to work, please let me know!

Thanks!

 
Chris Dollis
Chris Dollis's picture

Joined: 2006-04-13
Posts: 4
Posted: Thu, 2006-04-13 23:19

Hey, Crux, you are totally right. Further, rather than intentionally disabling them, you have the option of just supressing the warnings using these values:

suppressWarningIM=true
suppressWarningJpegtran=true

... which is a better solution, I guess.

BUT... I tried to set the path variable directly to jpegtran.exe and that did absolutely nothing. So I guess I just supress the warning messages for now unless you have any more ideas?

--
My blog is devoted to the woman I love, Jacqui, and our relationship while she lives in Australia and I live in Canada. Our goal is to meet, love, and build. Leave us a quick word of support! lovingjacqui.net

 
fjehoel

Joined: 2007-01-12
Posts: 3
Posted: Fri, 2007-01-12 08:01

I found a better solution:

download the jpegtran binaries. (i used this site: http://sylvana.net/jpegcrop/jpegtran/)

add the following variables to upload applet and slideshow applet:

jp.enabled=true
jp.crop.enabled=true
jp.path=[PATH TO JPEGTRAN]\jpegtran.exe

Now you don't only suppress the warnings but you make sure the warnings don't appear at all!

 
fjehoel

Joined: 2007-01-12
Posts: 3
Posted: Fri, 2007-01-12 11:52

hmmm...
it seems that I was wrong, it still doesn't work on another computer.

 
m2guru

Joined: 2007-01-16
Posts: 1
Posted: Tue, 2007-01-16 23:19

I am getting this, on OS X (10.4.8 Tiger), Gallery Remote 1.5.1-b30, when I check the box 'Resize before Upload'

An optional part of Gallery Remote, jpegtran, could not be found or is malfunctioning for the purpose of cropping pictures. Gallery Remote will not be able to losslessly crop images before uploading them. You can find out how to fix this by going to this page:

Gallery Remote Bundled (I personally edited this wiki page to correctly link users to Gallery Remote:Bundled)

I have additionally attempted to reproduce the error after downloading both ImageMagic and JPEGtran, both of which I copied to /usr/local/bin

I tried the imagemagick-6.1.7.pkg from entropy.ch

I also tried ImageMagick-powerpc-apple-darwin8.8.0.tar

I even tried editing Gallery Remote.app --> Show Package Contents --> jpegtran --> jpegtran.properties line 9 from jp.path=Contents/MacOS/jpegtran to jp.path=/usr/local/bin/jpegtran but it still failed.

I still get the error, and I cannot crop or resize images before FTP to server.

 
lesliej

Joined: 2005-07-13
Posts: 1
Posted: Fri, 2007-01-26 16:54

Thanks Chris, this solved my problem.

 
gcshum

Joined: 2007-02-13
Posts: 35
Posted: Fri, 2007-02-16 00:41

Anyone solved the problem yet?

 
rich999

Joined: 2007-06-19
Posts: 4
Posted: Fri, 2007-07-20 16:50

I added these variables to Site Admin => Upload Applet => Upload Applet Settings
jp.enabled=true Delete
jp.crop.enabled=true Delete
jp.path=c:\gallery2\jpegtran.exe

and made sure that c:\gallery2\jpegtran.exe was the path to my jpegtran.exe

Upload Applet works fine. No errors.

 
NashChristian

Joined: 2008-07-07
Posts: 3
Posted: Mon, 2008-07-28 03:52
rich999 wrote:
I added these variables to Site Admin => Upload Applet => Upload Applet Settings
jp.enabled=true Delete
jp.crop.enabled=true Delete
jp.path=c:\gallery2\jpegtran.exe

and made sure that c:\gallery2\jpegtran.exe was the path to my jpegtran.exe

Upload Applet works fine. No errors.

So does this solution work for other people? Can this jpegtran.exe just be installed on the server hosting the site, or does each client desktop accessing the site also need to have the program installed locally? I need a solution that can be implemented on the server only, whether that means disabling the functionality or enabling it.

Thanks.
Jeff

 
bigjj

Joined: 2008-07-29
Posts: 1
Posted: Tue, 2008-07-29 10:41

Thx Rich999. That was the tip I needed.

Put in these setting in the overides in the Upload Applet Settings

jp.path=/usr/bin/jpegtran
im.convertPath=/usr/bin/convert

And so far it looks to be working