I recently came across the need to convert jpg images with IM, did a standard install of "yum -y install ImageMagick" and found that images converted with CentOS's base port of IM would actually corrupt the images, yet using the same (albiet different version, different distro) software didn't corrupt the images at all.
By corrupted, I mean, the bottom portion of the image under *some* webservers looked completely wrong, and had strange checkering of the image in stripes across the bottom.
At the time I had this problem, I took the issue to IM's forum, to no avail. I ended up just using it on a Debian machine instead.
Peter
On Wed, 2009-12-16 at 15:16 -0800, Peter Serwe wrote:
I recently came across the need to convert jpg images with IM, did a standard install of "yum -y install ImageMagick" and found that images converted with CentOS's base port of IM would actually corrupt the images, yet using the same (albiet different version, different distro) software didn't corrupt the images at all.
I use convert and mogrify on a reasonably regular basis for various tasks and haven't noticed any problems here.
Is there anything "special" about your images? You are converting them from jpg to.. what format?
888x888 jpeg to 420x420 150x150, 100x100, and 50x50, output image format is jpeg.
I didn't notice the problem until it was hosted on a certain commercial storefront provider, under apache, I saw no problem.
I'm doing with a pair of loops, so my actual convert line looks like:
/usr/bin/convert -resize ${size}x${size} $image $OUTDIR/$image Peter
On Wed, Dec 16, 2009 at 3:37 PM, Frank Cox theatre@sasktel.net wrote:
On Wed, 2009-12-16 at 15:16 -0800, Peter Serwe wrote:
I recently came across the need to convert jpg images with IM, did a standard install of "yum -y install ImageMagick" and found that images converted with CentOS's base port of IM would actually corrupt the images, yet using the same (albiet different version, different distro) software didn't corrupt the images at all.
I use convert and mogrify on a reasonably regular basis for various tasks and haven't noticed any problems here.
Is there anything "special" about your images? You are converting them from jpg to.. what format?
-- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, 2009-12-16 at 15:57 -0800, Peter Serwe wrote:
I didn't notice the problem until it was hosted on a certain commercial storefront provider, under apache, I saw no problem.
That suggests a problem with the way your "mystery software" is serving the image rather than a problem with the image. Which points to a bug in the "mystery software".
I'd say that was true if the mystery server didn't serve images converted under Lenny just fine.
In fact, it was argued during the issue that it wasn't our fault, that it works under a standard web server just fine.
The fact remains, the Debian port of IM worked, the CentOS one didn't. I've already worked around the issue, I just do my conversions on Debian, being that I'm not really a Debian fanboy, I'm not terribly thrilled about maintaining a Debian install around, and I figured I'd ask.
The provider is coresense. For better or for worse. They do a lot of things stupidly, but it works, and for lack of a better option to suggest for a cart with a back-end that handles the things they do, it stays.
Peter
On Wed, Dec 16, 2009 at 4:01 PM, Frank Cox theatre@sasktel.net wrote:
On Wed, 2009-12-16 at 15:57 -0800, Peter Serwe wrote:
I didn't notice the problem until it was hosted on a certain commercial storefront provider, under apache, I saw no problem.
That suggests a problem with the way your "mystery software" is serving the image rather than a problem with the image. Which points to a bug in the "mystery software". -- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, 2009-12-16 at 16:10 -0800, Peter Serwe wrote:
The provider is coresense. For better or for worse. They do a lot of things stupidly, but it works, and for lack of a better option to suggest for a cart with a back-end that handles the things they do, it stays.
Ok, then you either live with it or you fix it.
Have you tried compiling an imagemagick srpm on Centos to see if that fixes it? Your choice of srpm. Or perhaps compiling it directly from a tarball?
I did actually, try to compile IM from a tarball. Nailed all the dependencies except one or two, and ended up giving up for th easier, softer way.
I didn't try compiling the SRPM. There is a thought in that.
Peter
On Wed, Dec 16, 2009 at 4:26 PM, Frank Cox theatre@sasktel.net wrote:
On Wed, 2009-12-16 at 16:10 -0800, Peter Serwe wrote:
The provider is coresense. For better or for worse. They do a lot of things stupidly, but it works, and for lack of a better option to suggest for a cart with a back-end that handles the things they do, it stays.
Ok, then you either live with it or you fix it.
Have you tried compiling an imagemagick srpm on Centos to see if that fixes it? Your choice of srpm. Or perhaps compiling it directly from a tarball? -- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, 2009-12-16 at 16:47 -0800, Peter Serwe wrote:
I didn't try compiling the SRPM. There is a thought in that.
I have found that some F10-F12 srpm's (particularly command-line utility stuff) can be compiled on Centos with few or no changes required.
You can't directly rebuild F11 and F12 srpms due to the change in the checksumming stuff, but extracting them and building a new srpm is pretty trivial.
At Wed, 16 Dec 2009 15:16:00 -0800 CentOS mailing list centos@centos.org wrote:
I recently came across the need to convert jpg images with IM, did a standard install of "yum -y install ImageMagick" and found that images converted with CentOS's base port of IM would actually corrupt the images, yet using the same (albiet different version, different distro)
^^^^^^^^^^^^^^^^^?
software didn't corrupt the images at all.
By corrupted, I mean, the bottom portion of the image under *some* webservers looked completely wrong, and had strange checkering of the image in stripes across the bottom.
At the time I had this problem, I took the issue to IM's forum, to no avail. I ended up just using it on a Debian machine instead.
Which version of CentOS? I use convert all of the time with CentOS 4.8, using ImageMagick 6.0.7.1-20.el4 without any problems:
sauron.deepsoft.com% rpm -q ImageMagick ImageMagick-6.0.7.1-20.el4
*Exactly* which version of CentOS, ImageMagick? i386 or x86_64?
Peter
CentOS 5.2,
[root@pythagoras ~]# rpm -q ImageMagick ImageMagick-6.2.8.0-4.el5_1.1
On Wed, Dec 16, 2009 at 4:01 PM, Robert Heller heller@deepsoft.com wrote:
At Wed, 16 Dec 2009 15:16:00 -0800 CentOS mailing list centos@centos.org wrote:
I recently came across the need to convert jpg images with IM, did a standard install of "yum -y install ImageMagick" and found that images converted with CentOS's base port of IM would actually corrupt the images, yet using the same (albiet different version, different distro)
^^^^^^^^^^^^^^^^^?
software didn't corrupt the images at all.
By corrupted, I mean, the bottom portion of the image under *some* webservers looked completely wrong, and had strange checkering of the
image
in stripes across the bottom.
At the time I had this problem, I took the issue to IM's forum, to no avail. I ended up just using it on a Debian machine instead.
Which version of CentOS? I use convert all of the time with CentOS 4.8, using ImageMagick 6.0.7.1-20.el4 without any problems:
sauron.deepsoft.com% rpm -q ImageMagick ImageMagick-6.0.7.1-20.el4
*Exactly* which version of CentOS, ImageMagick? i386 or x86_64?
Peter
-- Robert Heller -- 978-544-6933 Deepwoods Software -- Download the Model Railroad System http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows heller@deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
From: Peter Serwe peter.serwe@gmail.com
CentOS 5.2, [root@pythagoras ~]# rpm -q ImageMagick ImageMagick-6.2.8.0-4.el5_1.1
ImageMagick-6.2.8.0-4.el5_1.1 on CentOS 5.4 and never experienced any corruption here... Did you try to convert an image several times and check that they are all the same?
JD
Yep, I also looked into building:
[root@pythagoras SPECS]# rpmbuild ImageMagick.spec error: Failed build dependencies: perl-devel is needed by ImageMagick-6.5.8-6.x86_64 jasper-devel is needed by ImageMagick-6.5.8-6.x86_64 [root@pythagoras SPECS]#
But I couldn't satisfy those reqs. I saw a post by Johnny about it, just didn't see the ultimate result.
Peter
On Thu, Dec 17, 2009 at 2:15 AM, John Doe jdmls@yahoo.com wrote:
From: Peter Serwe peter.serwe@gmail.com
CentOS 5.2, [root@pythagoras ~]# rpm -q ImageMagick ImageMagick-6.2.8.0-4.el5_1.1
ImageMagick-6.2.8.0-4.el5_1.1 on CentOS 5.4 and never experienced any corruption here... Did you try to convert an image several times and check that they are all the same?
JD
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos