8000 Add image size-check option · Issue #67 · sprity/sprity · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add image size-check option #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
aaronwbrown opened this issue Aug 4, 2016 · 0 comments
Open

Add image size-check option #67

aaronwbrown opened this issue Aug 4, 2016 · 0 comments

Comments

@aaronwbrown
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0