robaho / seashore

easy to use mac osx image editing application for the rest of us
GNU General Public License v2.0
439 stars 19 forks source link

Resize lead the invisible border (who became white in some format) #211

Closed BirdInFire closed 1 month ago

BirdInFire commented 1 month ago

I actually use your tool to change very often size and format of a file, the problem is that I have so often the issue of a picture with a strange border who appear (witch become white in webp or jpg).

Here a picture (mine) from 1334px to 204px :

This is quite annoying as this bug make the necessity of manual intervention to remove this empty zone witch take time.

BirdInFire commented 1 month ago

Ad additional information the original image where in PNG, the version is : Version 3.35 (2024050201) on Mac OS : 14.5 And I've taken the paid version to support you (I don't expect the removal of the "support" message from the software being the culprit, but I prefer give you as much as information as possible).

there is the original picture of the one that cause the issue : https://wormhole.app/LJyWz#4KzsKiGAONdxPHNIQX0aXw (24h - 100 download Max)

robaho commented 1 month ago

This occurs when you scaled the layer to be smaller than the canvas size, and there is a background layer that is transparent.

If you use Image -> Scale Image you should not see this.

I cannot open the wormhole file as it says you left before finishing the upload.

image
robaho commented 1 month ago

Please attach the file here, or reupload to wormhole. Also, I need to know the full dimensions (width AND height) you were trying to scale the image to.

BirdInFire commented 1 month ago

1334x1334 -> 204x204 Here the full size

it's indeed scaleimage I used why I guess it's an exceptional bug on some type of images

IMG_6406

robaho commented 1 month ago

Thanks. I was able to reproduce the issue. I think it is because the scaling ratios end up not being integral (e.g. 15.3) so you have a fraction of a pixel. I will look into it and see if I can add a fix.

Thanks again for reporting this.

BirdInFire commented 1 month ago

Thanks. I was able to reproduce the issue. I think it is because the scaling ratios end up not being integral (e.g. 15.3) so you have a fraction of a pixel. I will look into it and see if I can add a fix.

Thanks again for reporting this.

No problem I also have a developer background I know the most difficult in a bug fix .. it's reproducing it :)

robaho commented 1 month ago

When I look at the layer, it says it is 205 x 205, even though the dialog had 204x204 so I am pretty certain it is a rounding issue. Should be an easy fix.

robaho commented 1 month ago

I was able to fix it. It is available in the 3.36 release which should be downloadable in 24 hrs.

BirdInFire commented 1 month ago

I was able to fix it. It is available in the 3.36 release which should be downloadable in 24 hrs.

thanks :)