Not able to convert to tiff files (Pl, its Urgent for me)
Posted: 2009-08-21T21:12:44-07:00
Requirement : My requirement is to convert bmp,jpg,gif files to tiff files.
I have two options to do this
A. Doing it from Shell Script.
B. Doing it through batch ( i.e C++ Program) or
A. Doing it from Shell Script
1. I tried to an extent successful by doing this using scripts ( calling /usr/bin/convert). The issues I faced with this were
a)It did not give me direct convertion from Jpg to tif. ( Some times only) I had to convert Jpg to gif and gif to tif . Is there any work around for this ?
for eg : > convert -size 120x120 6.jpg 6.tif
a new file is created with the 6.tif name but, I was not able to view the 6.tif . I am getting “No Preview available” Message.
Where as I am able to convert the same file.
> convert -size 120x120 6.jpg 6.gif
> convert -size 120x120 6.gif 6.tif
I am able to open the file 6.tif perfectly.
b) As you in the first case also it is not throwing any error. Is there any way to catch this.? if i have an error i can cath that and handle accordingly in my shell scrpt
B. Doing it through batch ( i.e C++ Program)
Can I use ImageMagic’s C++ API in my batch program. I know Magic++ has a library, And i downloaded ImageMagic++ suite
I have got lot of utilities like convert.c. but i am not able to use them.
Can any one share some sample programs for the same.
Thanks in advance, Hope my explanation is clear.
I have tried , all possiblities, and as my last option i am trying with the Imagemagick User-forum
Surya Kiran.
I have two options to do this
A. Doing it from Shell Script.
B. Doing it through batch ( i.e C++ Program) or
A. Doing it from Shell Script
1. I tried to an extent successful by doing this using scripts ( calling /usr/bin/convert). The issues I faced with this were
a)It did not give me direct convertion from Jpg to tif. ( Some times only) I had to convert Jpg to gif and gif to tif . Is there any work around for this ?
for eg : > convert -size 120x120 6.jpg 6.tif
a new file is created with the 6.tif name but, I was not able to view the 6.tif . I am getting “No Preview available” Message.
Where as I am able to convert the same file.
> convert -size 120x120 6.jpg 6.gif
> convert -size 120x120 6.gif 6.tif
I am able to open the file 6.tif perfectly.
b) As you in the first case also it is not throwing any error. Is there any way to catch this.? if i have an error i can cath that and handle accordingly in my shell scrpt
B. Doing it through batch ( i.e C++ Program)
Can I use ImageMagic’s C++ API in my batch program. I know Magic++ has a library, And i downloaded ImageMagic++ suite
I have got lot of utilities like convert.c. but i am not able to use them.
Can any one share some sample programs for the same.
Thanks in advance, Hope my explanation is clear.
I have tried , all possiblities, and as my last option i am trying with the Imagemagick User-forum
Surya Kiran.