Page 1 of 1

Succesful Conversion

Posted: 2010-06-22T10:03:39-07:00
by SIDDARTH
I am using the tool provided here to convert----->ImageMagick-6.6.2-Q16-windows.zip

I have been able to successfully convert PDF to Tif using .NET

How do i know when a tiff has been sucessfully converted or not.

This is my Command
----------------------------------------------------------------------------------------------------------------------------------
convert -verbose -units PixelsPerInch -density 300x300 -compress Group4 "SOURCE FILE PATH" "DESTINATION FILE PATH"
----------------------------------------------------------------------------------------------------------------------------------

Although i am able to convert PDF to TIF sucesfully i am getting this error.I am able to view it perfectly.
But since i am using Imagemagick in code,apart from the o/p conversion code it is also giving an error message.

Error Message
---------------------------------------------------------------------------------------------------------------------------------
"convert.exe: unable to open image `convert': No such file or directory @ error/blob.c/OpenBlob/2498.convert.exe: no decode delegate for this image format `convert' @ error/constitute.c/ReadImage/532."
---------------------------------------------------------------------------------------------------------------------------------

so i wanted to know when a PDF is converted ,whether its a sucessful conversion or not.Does imagemagick log it in anywhere or any other way to find?
Or the only way is to view & compare the file

Kindly Help me. :(

Re: Succesful Conversion

Posted: 2010-06-22T10:52:15-07:00
by fmw42
you could try


convert -quiet -regard-warnings input ... output ||
echo "--- FILE $infile DOES NOT EXIST OR IS NOT AN ORDINARY FILE, NOT READABLE OR HAS ZERO SIZE ---"


see http://www.imagemagick.org/Usage/basics/#controls

Re: Succesful Conversion

Posted: 2010-06-22T11:32:57-07:00
by SIDDARTH
I am still Unable to supress the Error message.(Although I am able to see the output perfectly.)

Is there anyway i can supress it? and

How do i know a sucessfull Conversion.Is it by Manually Comparing or any other way that IM has??

Command Used
----------------------------

convert -quiet -verbose -units PixelsPerInch -density 300x300 -compress Group4 "Source File Path" "Dest File Path"

and

convert -verbose -units PixelsPerInch -density 300x300 -compress Group4 -quiet "Source File Path" "Dest File Path"

----------------------------

Thank you.
Kindly Help