OK what am i doing....?
Versions of software:
Code: Select all
$ uname -or
3.0.36-1-lts GNU/Linux
$ convert -version
Version: ImageMagick 6.7.8-1 2012-07-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features:
Resizing sample PNG:
Code: Select all
$ identify original.png
original.png PNG 744x1052 744x1052+0+0 8-bit DirectClass 33.5KB 0.000u 0:00.000
$ convert original.png -resize 50% original_resized.png
$ identify original_resized.png
original_resized.png PNG 372x526 372x526+0+0 8-bit PseudoClass 256c 7.39KB 0.000u 0:00.010
In resized image i see changes in gray colour. It is darker.
And same process of image with -resize 100% with same result:
Code: Select all
$ identify original.png
original.png PNG 744x1052 744x1052+0+0 8-bit DirectClass 33.5KB 0.000u 0:00.000
$ convert original.png -resize 100% original_notresized.png
$ identify original_notresized.png
original_notresized.png PNG 744x1052 744x1052+0+0 8-bit PseudoClass 256c 15.3KB 0.000u 0:00.000
i think its not problem of -resize. Try:
Code: Select all
convert original.png original2.png
gets same result. -colospace RGB doesn't help.
You can download these sample images here:
Code: Select all
http://www.ulozto.net/xnDnuoh/pngimages-tar-gz
Documentation of convert -resize command is huge. I hope that you help me. I have another but similar issue about converting and displaying FITS, FIT images.
Thanks a lot. J.