03-24-2023, 04:50 PM
(03-24-2023, 02:10 PM)poheyi01 Wrote: I think I can reproduce such an issue that strangely seems to have to do something with the ICO format only.
Here are the simple steps to reproduce it:
Nevertheless since that behaviour only occurs in ICO export it seems to be a bug to me.
- Open the To_Do.svg image attached in GIMP (I got version 2.10.34).
- When asked for the size of the SVG enter 128 width, height automatically changes to 104.
- Click OK.
- Now Select Image => Canvas Size´.
- Enter a new height of 128 px
- Click Centre (you may have to click it twice since the size changes not before the width input field has lost focus).
- Ensure that the Resize Layers dropdown shows None.
- Click Resize.
- As a result you will see the layer as shown here:
Note that the image layer is a little smaller than the canvas.
- Now export it to, say, PNG => the resulting png has a correct size of 128x128 px
- Now export it to ICO => the resulting png has an (imo) incorrect size of 128x104 px as has the only layer in our image.
- You can get a correct result if you resize the layer to the canvas size using Layer => Layer Boundary Size.
- Now the ICO export also has a size of 128x128 px.
- You could have achieved a correct result from the outset if you would have chosen Resize Layers => All Layers in the Set Image Canvas Size dialog.
Oh, and I nearly forgot: Don't get confused with the icon cache when using Windows. Win heavily caches icons so that you never know what the icon really looks like just relying on the icon shown in Explorer. You will see the real content when opening the icon in GIMP or when you rename the icon to a name that did'nt exist before. Alternatively you can clear the icon cache using a batch file with this content:
Code:
@echo off
taskkill /f /IM explorer.exe
CD /d %userprofile%\AppData\Local\Microsoft\Windows
del /f /s /q Explorer\iconcache*.*
Start explorer.exe
Hope some of you might find all that useful in that a bit of a special use case here (that's why I don't dare to hop this is getting fixed soon...).
Interesting point about Windows Caching. That explains some things for sure! And Thanks for the script... (Looks like another .bat (band-aid) file I'll need to create to work around MS Windows behavior... ha...)