eps > jpg = color profile issues .. eps > pdf > jpg = ok ?!
Posted: 2008-11-10T11:04:40-07:00
Hello everyone,
First, I run ImageMagick 6.4.4 2008-10-20 Q16 HDRI compiled on FreeBSD 6.4-pre-i386, built from ports (cvsup'ed on 4/11/08)
I'm in a case scenario, I receive images from various designers, mostly EPS (wel .. EPT) files with various (understand chaotic) color profiles.
From the docs I've read so far, I understand that profiles can be a very tricky thing to deal with.
And from the below tests, I can only confirm there are.
I'm trying to generate simple JPG thumbnails for these EPS graphics using the following :
---
#!/bin/sh
cd /home/foo/test
src="./eps_test.eps"
dst="./eps_dst.jpg"
/usr/local/bin/convert "$src" -resize 100x70 -gravity center -background white -extent 100x70 "$dst"
---
Result is a completely inaccurate colored jpg ..
But, if i first convert the EPS file to PDF than PDF to JPG, it works, it generates a nearly perfect colored thumbnail (close enough to the original EPS fit my needs):
---
#!/bin/sh
cd /home/foo/test
src="./eps_test.eps"
dst="./eps_dst.pdf"
/usr/local/bin/convert "$src" -resize 100x70 -gravity center -background white -extent 100x70 "$dst"
src="./eps_dst.pdf"
dst="./eps_dst.jpg"
/usr/local/bin/convert "$src" -resize 100x70 -gravity center -background white -extent 100x70 "$dst"
---
Now the obvious question that's been on my mind all day, what am i missing in the first script, that converting to PDF does, since the EPS to PDF converting shows a correct colored PDF ..?
Many thanks for your time reading my issue.
I'm sure there is a way that would prevent me from generating a temp PDF each time i want to convert an EPS > JPG .. (?)
... And long live to ImageMagick !
First, I run ImageMagick 6.4.4 2008-10-20 Q16 HDRI compiled on FreeBSD 6.4-pre-i386, built from ports (cvsup'ed on 4/11/08)
I'm in a case scenario, I receive images from various designers, mostly EPS (wel .. EPT) files with various (understand chaotic) color profiles.
From the docs I've read so far, I understand that profiles can be a very tricky thing to deal with.
And from the below tests, I can only confirm there are.
I'm trying to generate simple JPG thumbnails for these EPS graphics using the following :
---
#!/bin/sh
cd /home/foo/test
src="./eps_test.eps"
dst="./eps_dst.jpg"
/usr/local/bin/convert "$src" -resize 100x70 -gravity center -background white -extent 100x70 "$dst"
---
Result is a completely inaccurate colored jpg ..
But, if i first convert the EPS file to PDF than PDF to JPG, it works, it generates a nearly perfect colored thumbnail (close enough to the original EPS fit my needs):
---
#!/bin/sh
cd /home/foo/test
src="./eps_test.eps"
dst="./eps_dst.pdf"
/usr/local/bin/convert "$src" -resize 100x70 -gravity center -background white -extent 100x70 "$dst"
src="./eps_dst.pdf"
dst="./eps_dst.jpg"
/usr/local/bin/convert "$src" -resize 100x70 -gravity center -background white -extent 100x70 "$dst"
---
Now the obvious question that's been on my mind all day, what am i missing in the first script, that converting to PDF does, since the EPS to PDF converting shows a correct colored PDF ..?
Many thanks for your time reading my issue.
I'm sure there is a way that would prevent me from generating a temp PDF each time i want to convert an EPS > JPG .. (?)
... And long live to ImageMagick !