Announcement

Collapse
No announcement yet.

/resample Command Line Switch Broken in 4.25, 4.27

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Reported /resample Command Line Switch Broken in 4.25, 4.27

    Greetings,

    I just discovered what I beleive to be a bug in 4.25 and 27. When issuing the following command (or variations of it), the resample seems to be ignored.

    I downgraded to 3.95 and it's working fine.

    Code:
    "\Program Files\IrfanView\i_view32.exe" "c:\temp\LargePic.jpg" /resample=(270,0) /aspectratio /convert="c:\temp\SmallerPic.png"
    Let me know if you have trouble reproducing the bug.

    Jeff

    #2
    Hi,

    I'm not sure how the old version used the command line code, but resample does not need any parameter. Try this:

    Code:
    "\Program Files\IrfanView\i_view32.exe" "c:\temp\LargePic.jpg" /resize=(270,0) /resample /aspectratio /convert="c:\temp\SmallerPic.png"
    Regards, Nils.

    Comment


      #3
      Originally posted by derniwi View Post
      I'm not sure how the old version used the command line code, but resample does not need any parameter.
      Right you are! The resample parameter has changed since 3.95. It now requires the resize parameter as well.

      Thanks for pointing that out.

      Here's the description from the 3.95 help file:
      Originally posted by 3.95 Help File
      /resize=(w,h) - resize input image to w (width) and h (height)
      /resample=(w,h) - resample input image to w (width) and h (height)
      And here's the 4.27 help file:
      Originally posted by 4.27 Help File
      /resize=(w,h) - resize input image to w (width) and h (height)
      /resample - for resize: use Resample option (better quality)
      The change make the command line more consistent with the user interface, so, in that sense, I suppose it's an improvement.

      For me personally, it was a headache having to figure out why code I'd been relying on for many years stopped working with the Irfan upgrade.

      It's nice to know that there's a supportive community to turn to in cases like this.

      Comment

      Working...
      X