Hans-Guenter Kleff said:
Hello,
I try to set the quality of a scanned graphic with the command line
option /jpgq . For example:
C:\Programs\IrfanView\i_view32.exe /scan /jpgq=50;
/convert=d:\graphics\scantry.jpg
But the quality stays always the same as it is preset in the program.
Is my syntax wrong? Or what else has to be done?
Hans-Guenter Kleff
Hi Hans,
I updated my Irfanview (from 3.75) and reviewed the expanded command
list.
I haven't tried any of this yet, so let the reader beware.
I believe your syntax does have a couple of errors:
a) The ';' (semi-colon) at the end of line 1 probably shouldn't be
there. In your example, your are only calling "i_view32.exe" once,
and that may be confusing to what options to execute.
b) Depending on your scanner's file type defaults, you may need to
convert the original scan to a '.jpg' before you try using the
"/jpgq" option.
If you can set the scanner default to '.jpg' OR select '.jpg' with
the /scan (NOT hidden) option, then your example (without the
semi-colon) 'might' work:
C:\Programs\IrfanView\i_view32.exe /scan /jpgq=50
/convert=d:\graphics\scantry.jpg
Otherwise you could try it with one command combining the two steps
(at your own risk of course

C:\Programs\IrfanView\i_view32.exe /scanhidden
/convert=d:\graphics\scantry.jpg /jpgq=50
/convert=d:\graphics\scan50.jpg
OR maybe a safer two step method
C:\Programs\IrfanView\i_view32.exe /scanhidden
/convert=d:\graphics\scantry.jpg
C:\Programs\IrfanView\i_view32.exe d:\graphics\scantry.jpg /jpgq=50
/convert=d:\graphics\scan50.jpg
Like I said, I haven't tried any of these myself, so Good Luck.
Cheers,
tomZ
--
If you spam my mailbox, you agree to accept any response I deem
appropriate.
Keep SIGNATURE AGREEMENT before replying.
"Any business model that relies on 'caveat emptor' is not ethical."
(aka Sony)
This posting may not be reversed engineered. My keyboard is proprietary.