ImageGlass icon indicating copy to clipboard operation
ImageGlass copied to clipboard

Making the window as the actual size of an image

Open misterhackerman opened this issue 3 years ago • 3 comments

When first opening an image, it's great to see it in it's actual dimensions.

This will return these benefits:

  1. It will give you a better Idea of how big is the image.
  2. It will Look nicer without the empty margins.
  3. It won't take screen space more than it needs to.

I don't know much C#, but I think making this change is possible through resizing the window to the size of the image at startup.

Things to take into consideration:

  • an option should be added to resize the image keeping it's aspect ratio intact.

& Thx for the amazing application.

misterhackerman avatar Aug 09 '22 09:08 misterhackerman

You can view the actual size of the image, then click on the "Lock zoom ratio" button. This will keep your image opened in 100% size.

image

Or, you can create an igconfig.admin.xml file in the start up folder (where the ImageGlass.exe located) with the below content:

<ImageGlass>
  <Configuration>
    <Info description="ImageGlass Configuration file" version="7.5" />
    <Content>
      <Item key="ZoomMode" value="LockZoomRatio" />
      <Item key="ZoomLockValue" value="100" />
    </Content>
  </Configuration>
</ImageGlass>

This file forces IG to open in "Lock zoom ratio" mode, and set the zoom ratio to 100%.

d2phap avatar Aug 09 '22 13:08 d2phap

Thanks for the response. doing this ( setting zoom to Actual size, and locking zoom), solves one problem but it doesn't scale the window to fit the image)

misterhackerman avatar Aug 19 '22 15:08 misterhackerman

Good idea, as Picasa does when opening an image, zooming enlarges the image without cropping it.

donatopace avatar Oct 17 '22 10:10 donatopace