Announcement

Collapse
No announcement yet.

Button that can auto resize opened image to 800 X 600 then auto save

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

    Button that can auto resize opened image to 800 X 600 then auto save

    hi

    Is there a way to create a button in irfan viewer toolbar that can resize the current opened image to around 800 X 600 , then auto save the resized image to the original file location, over writting the previous larger image?

    This would help with users receiving large attachments, and gives them the option in irfan viewer to automatically resize the image without any prompts.

    thanks

    #2
    Hi,

    the button toolbar is not customizable.
    What you can do is either using the batch mode or a command line script. I have written a script some time ago, you can find it here.
    It should almost do what you are looking for (it resizes the long side).

    Regards
    Nils

    Comment


      #3
      Hi
      Many thanks for your email
      Please can you advise how you would execute this script from Irfan viewer, can it be added as a drop down option or a short key e.g. Ctrl XY?
      Thanks

      Comment


        #4
        Hi,

        I've never tried to add a script to IrfanView, since this script calls IrfanView itself.
        Just save this script to your computer, maybe create a link to the desktop. Then drag and drop a folder containing the files to be shrinked to the link.

        Regards
        Nils

        Comment


          #5
          You can call a Batch or Script file as an External editor. You need to type the path and file name into the appropriate External editor box in the Miscellaneous tab of Properties/Settings as the Browse function will only locate .exe files, but any executable file will work. If you have "Only 1 instance of Irfanview is active" unchecked in the Start/Exit options tab then the batch/script file can call Irfanview itself and another instance of the program will be used.

          You could for instance save
          Code:
          "C:\Program Files\IrfanView\i_view32.exe" %1 /advancedbatch /convert=%1
          as a batch file and make that batch file External editor 2.
          Then every time you pressed Shift+2 the current image file would have all the operations in the Advanced batch dialog applied to it and then be re-saved under the original filename.
          Be careful how you use it though. You are destroying the original file, although it will still be displayed in the open copy of Irfanview until you press Shift+R to re-open it.

          Comment

          Working...
          X