Page 1 of 1

Problem with -profile option.

Posted: 2014-11-13T22:48:13-07:00
by krxxl
Hello!
Sorry for my English.
I had a server that runs the script.
convert -density 300 -profile /usr/share/icc/CMYK/USWebCoatedSWOP.icc test.pdf filter mitchell -resize 1400 -quality 72 - profile /usr/share/icc/RGB/AdobeRGB1988.icc test.jpg
He is out of order and I all moved to another server. And now I have a problem with this script, i get a warning.
convert: associate profile with image, a source and destination color profile required for transform `icc' @ profile.c/ProfileImage/812.
I have not worked with IM before.
Question 1: ICC profile set up with some package or they simply can copy.
Question 2: why i get this warning.
Or tell me how it is achieved my desired result without profiles. with -colorspace rgb comes out the result.
I can give links to files.

Thank you.

Re: Problem with -profile option.

Posted: 2014-11-13T23:16:34-07:00
by snibgo
krxxl wrote:I can give links to files.
Please do.

Please also give the EXACT command you used, between [ code ] and [ /code ].

Re: Problem with -profile option.

Posted: 2014-11-14T00:02:16-07:00
by krxxl
http://my-files.ru/436lb9 old
http://my-files.ru/6cbhg0 new
http://my-files.ru/y6btme source

Sorry, I don't understand about "Please also give the EXACT command you used, between [ code ] and [ /code ]."

Script

Code: Select all

#!/bin/bash
export http_proxy=http://192.168.100.5:3128
export ftp_proxy=http://192.168.100.5:3128

DT=`date +%Y_%m_%d`
echo $DT
FILEPATH=`kuri_$DT_01.pdf`
echo $FILEPATH
FULLPATH=`find /raid/tlt_kur_numbers/*/kuri_141113_01.pdf -print`
echo $FULLPATH


DIRNUMBER=`dirname "$FULLPATH"`
echo $DIRNUMBER
#NUMBER=`echo $FULLPATH | awk -F/ '{split ($4,N," "); print N[2];}'`
NUMBER=43
mkdir /tmp/kur/$NUMBER
cp "$DIRNUMBER"/kuri*.pdf /tmp/kur/$NUMBER/
cd /tmp/kur/$NUMBER

for i in $( ls *.pdf | sed -e 's/\.pdf$//g' ); do
 convert -density 300 -profile /usr/share/icc/CMYK/USWebCoatedSWOP.icc $i.pdf -filter mitchell  -resize 1400 -quality 72  -profile /usr/share/icc/RGB/AdobeRGB1998.icc $i.jpg
echo $i
done

DIRSMALL=small

PATHSHADL=shadleft.png
PATHSHADR=shadright.png

cp /tmp/shad*.png /tmp/kur/$NUMBER/

#размеры ширины картинок 
SIZEB=1400
SIZES=700

mkdir $DIRSMALL

for JPG in $( ls *.jpg ); do
convert $JPG -filter mitchell -resize $SIZES -quality 50 -colorspace RGB $DIRSMALL/$JPG
done

for JPG_L in $( ls *01.jpg *03.jpg *05.jpg *07.jpg *09.jpg *11.jpg *13.jpg *15.jpg *17.jpg *19.jpg *21.jpg *23.jpg *25.jpg *27.jpg *29.jpg *31.jpg *33.jpg *35.jpg); do
composite -gravity northwest $PATHSHADR $DIRSMALL/$JPG_L $DIRSMALL/$JPG_L
done

for JPG_R in $( ls *02.jpg *04.jpg *06.jpg *08.jpg *10.jpg *12.jpg *14.jpg *16.jpg *18.jpg *20.jpg *22.jpg *24.jpg *26.jpg *28.jpg *30.jpg *32.jpg *34.jpg *36.jpg); do
composite -gravity northeast $PATHSHADL $DIRSMALL/$JPG_R $DIRSMALL/$JPG_R
done
exit 0;

Re: Problem with -profile option.

Posted: 2014-11-14T00:08:50-07:00
by krxxl
Version IM 6.2.8 old server
Version IM 6.5.4 new server

Re: Problem with -profile option.

Posted: 2014-11-14T01:53:43-07:00
by snibgo
The command in your first post was invalid. The second post is better.

Your versions are very old. You should update them.

Then this will work well:

Code: Select all

convert -density 300 -profile USWebCoatedSWOP.icc pres_080814_01.pdf -profile sRGB.icc -filter mitchell -resize 1400 -quality 72 p.jpg

Re: Problem with -profile option.

Posted: 2014-11-14T05:01:43-07:00
by krxxl
I'm trying to install IM 6.8.9 and get error:

unmet dependencies
ImageMagick-libs = 6.8.9-10 нужен для ImageMagick-6.8.9-10.x86_64
libMagickCore-6.Q16.so.2()(64bit) нужен для ImageMagick-6.8.9-10.x86_64
libMagickWand-6.Q16.so.2()(64bit) нужен для ImageMagick-6.8.9-10.x86_64
libfftw3.so.3()(64bit) нужен для ImageMagick-6.8.9-10.x86_64
libltdl.so.3()(64bit) нужен для ImageMagick-6.8.9-10.x86_64

I can not find these RPMs for my OS Centos 6.5

Re: Problem with -profile option.

Posted: 2014-11-14T05:30:34-07:00
by krxxl
Maybe there is a way without updating?
Why do I get this error?

convert: associate profile with image, a source and destination color profile required for transform `icc' @ profile.c/ProfileImage/812.
Something is wrong with the profiles? They must be install or i can just copy?