Succesful Conversion

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
SIDDARTH

Succesful Conversion

Post 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. :(
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Succesful Conversion

Post 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
SIDDARTH

Re: Succesful Conversion

Post 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
Post Reply