[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • Last Modified:

Linux command line Image Converter

I'm building a Web where ppl can send pictures, so I need a Linux command line Image converter so I when some1 upload a picture a CGI convert it to it's apropiate size and format. Any idea?

Thanks in advance.

-Sorry about my English, but it's my 4th language.

1 Solution
Try this page for a tonne of utilities including Unix/Linux variants

Excellent English - better than mine <g> - and it's my 1st language :-)
Here's another site with loads of Linux graphic utilties



Which formats do you want to convert? And which formats should be the result?
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

xabiAuthor Commented:
Input file: gif & jpg
Output  : jpg and diferent size. (maybe up to 64x64)

This is cause ppl can upload images and I want to show this pics in fixed tables.

Appended is an excerpt from the Image Compression FAQ. It is a library though and you will probably have to do some programming before it does everything you need.

Does this help?

 - Erwin


Free, portable C code for JPEG compression is available from the Independent
JPEG Group.  Source code, documentation, and test files are included.
Version 5b is available from ftp.uu.net:/graphics/jpeg/jpegsrc.v5b.tar.gz.
If you are on a PC you may prefer ZIP archive format, which you can find at
oak.oakland.edu:/SimTel/msdos/graphics/jpgsrc5a.zip (or at any Simtel mirror
site).  On CompuServe, see the GRAPHSUPPORT forum (GO GRAPHSUP), library 12,
file jpgs5a.zip.

The IJG code includes a reusable JPEG compression/decompression library,
plus sample applications "cjpeg" and "djpeg", which perform conversion
between JPEG JFIF format and image files in PPM/PGM (PBMPLUS), GIF, BMP,
Utah RLE, and Targa formats.  Two small applications "wrjpgcom" and
"rdjpgcom" insert and extract textual comments in JFIF files.
The package is highly portable; it has been used successfully on many
machines ranging from Apple IIs to Crays.

The IJG code is free for both noncommercial and commercial use; only an
acknowledgement in your documentation is required to use it in a product.
(See the README file in the distribution for details.)

Just looked further: ImageMagick does what you want (without programming efforts) Look at  http://www.wizards.dupont.com/cristy/ImageMagick.html , this is what you need.

 - Erwin

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now