LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Image Compression (https://www.linuxquestions.org/questions/linux-software-2/image-compression-318573/)

kumu 04-29-2005 07:55 PM

Image Compression
 
Are there any linux programs out there that can compress an image size? I want to take a jpeg and convert it to a smaller size. I have a program in windoze that will do this, its called "Image Optimizer", but I want something like it for my linux box. thx

AltF4 04-29-2005 08:05 PM

I'm afraid there is no "lossless" further complression of JPEG images.

If you are aware of the consequences (e.g. lost image quality, artefacts, reduced resolution, ...), you can use "gimp" (http://www.gimp.org/) for interactive use or the "imagemagick" package (http://www.imagemagick.org/script/index.php) for batch.

bigrigdriver 04-29-2005 08:09 PM

If you have Linux installed and running, you may also have ImageMagic (if not, get it and install it). Use the mogrify option to resize an image to a smaller size. Resizing to a larger size is limited (eventually images begin to blur). You can always go smaller and retain a sharp image; going larger has its limits.

PS: there is a difference between compressing an image and resizing an image. Compressing can be a problem, becausing some image formats are already compressed. Resizing, on the other hand, changes the size of the image, but doesn't compress the image. Failure to grasp the difference means failure in your attempts to get the image in the size you want. Compressed = smaller file size; resized = smaller image size.

kumu 04-30-2005 09:52 AM

Quote:

Originally posted by bigrigdriver Compressed = smaller file size; resized = smaller image size.
Thanks for your help.

Thats what I want to do just compress them. I dont want to resize them. I basically just want them to appear on web pages faster.

Looks like my options are either Gimp or ImageMagick. I will play around with those and see what I can come up with.

Thanks again.


All times are GMT -5. The time now is 10:57 AM.