You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has there been any discussion around adding an option to check the size of an image before sprite creation? It would be useful if the spriting process ensures that the image dimensions have an even-numbered width and height, e.g 52x52 (not 53x53). The problem is that a non-retina image scales back 50% and odd numbers sometimes results in cut off images on one of the edges.
An obvious work around would be to read the directory, open each file, and check their dimensions. However, since Sprity is already reading in the files during the creation process, this seems a bit redundant, and could introduce further complexity/bugs down the road.
Is this something that Sprity would be interested in merging in if not already in discussion?
Thanks,
Aaron
The text was updated successfully, but these errors were encountered:
Hi,
Has there been any discussion around adding an option to check the size of an image before sprite creation? It would be useful if the spriting process ensures that the image dimensions have an even-numbered width and height, e.g 52x52 (not 53x53). The problem is that a non-retina image scales back 50% and odd numbers sometimes results in cut off images on one of the edges.
An obvious work around would be to read the directory, open each file, and check their dimensions. However, since Sprity is already reading in the files during the creation process, this seems a bit redundant, and could introduce further complexity/bugs down the road.
Is this something that Sprity would be interested in merging in if not already in discussion?
Thanks,
Aaron
The text was updated successfully, but these errors were encountered: