Repair jpg?
Posted: 2010-04-20T04:08:12-07:00
Hello!
Have problems with some images converted with ImageMagick.
I have used the following code
All created images can be opened with (for example) IrfanView.
(But don't always work with AutoHotkey GUI)
I've also encountered problems opening some images with Joomla (on the web)
If I open the image with IrfanView and save it back to jpg it works
The original image is 24kB and the new image is 1,82kB.
(I can open it with AutoHotkey GUI)
I have tried the same with ImageMagick.
But nothing happen with the image.... (What happens when you save with IrfanView?)
If I use "-define jpeg:size=240x240" like this
I got another result image (but I can't see the differens).
Is my only solution is to use Irfanview to solve this?
(If I create an png image it works)
//Jan
Have problems with some images converted with ImageMagick.
I have used the following code
Code: Select all
convert -define jpeg:size=120x120 hatching_orig.jpg -thumbnail 120x120^ \
-gravity center -extent 120x120 cut_to_fit.gif
(But don't always work with AutoHotkey GUI)
I've also encountered problems opening some images with Joomla (on the web)
If I open the image with IrfanView and save it back to jpg it works
The original image is 24kB and the new image is 1,82kB.
(I can open it with AutoHotkey GUI)
I have tried the same with ImageMagick.
Code: Select all
convert infile.jpg outfile.jpg
If I use "-define jpeg:size=240x240" like this
Code: Select all
convert -define jpeg:size=240x240 hatching_orig.jpg -thumbnail 120x120^ \
-gravity center -extent 120x120 cut_to_fit.gif
Is my only solution is to use Irfanview to solve this?
(If I create an png image it works)
//Jan