Autarchy of the Private Cave

Tiny bits of bioinformatics, [web-]programming etc

    • Archives

    • Recent comments

    jpegtran and ffmpeg on GoDaddy in Gallery2

    28th May 2007

    Jpegtran is a library for lossless rotation and cropping of JPEG photo files. Ffmpeg is a library for some basic video processing and playback. Gallery2 is a powerful and popular photo-gallery web-software.

    Gallery2 uses by default either PHP’s GD2 or ImageMagick toolkits to rotate/crop images. However, you can install jpegtran plugin, to rotate/crop JPEGs with no losses in quality.

    On GoDaddy shared hosting the path to jpegtran is /usr/bin/jpegtran. However, at least in my case, that binary failed the ‘crop’ test (but succeeded in ‘rotate’ test). So I downloaded another binary of jpegtran (from this page), put it into one of my folders, and told Gallery2 to use that binary instead of /usr/bin/jpegtran. This worked perfectly.

    The same approach can be used to enable thumbnails for videos via the ffmpeg plugin and binary (unfortunately, have no idea where did I take ffmpeg from – it was quite a time ago). Just download the binary, put it into one of your folders, tell Gallery2 the absolute path to the binary, and you are done!

    Finally, here are the links to the two binaries mentioned above:

    ffmpeg update: see here.


    6 Responses to “jpegtran and ffmpeg on GoDaddy in Gallery2”

    1. chase Says:

      ok so ,Does godaddy share hosting allow ffmpeg or not?

    2. Bogdan Says:


      ffmpeg does work on GoDaddy shared hosting. Also, I do not recollect anything in their ToS which would make ffmpeg usage a forbidden activity.

    3. BassKozz Says:

      Thanks for this, this solution worked for me :-D
      I am using HostGator not GoDaddy thou.

    4. Matt Says:

      ffmpeg works on GoDaddy even in the shared hosting service
      but you have to install it manually in your host directory

    5. Bogdan Says:


      this is exactly what I was saying in this post :)

    6. kobyn Says:

      Is there a way to install mplayer and mencoder in a godaddy shared hosting account? Thank you for all the replies.

    Leave a Reply

    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>