javl / image2cpp

GNU General Public License v3.0
537 stars 160 forks source link

"Apply First Image Size to all Images" applies automatically #57

Open mattncsu opened 1 year ago

mattncsu commented 1 year ago

Hi, I'm finding your image convert very convenient for batch converting about 50 png images for a project. Everything works as expected after uploading images and generating code but if I change any of the options or delete an image, all the images scale to match the last image.

image After clicking invert: image

javl commented 1 year ago

That isn't supposed to happen ;) I'll check it out.

javl commented 1 year ago

Ok, so the error is clear, there is a global variable for canvas size which gets used for all the images instead of using a separate value for each image. I'll fix it but need to find some time to do so.