-
Notifications
You must be signed in to change notification settings - Fork 169
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
Allow the user to supply pixel-perfect icons at both 1x and 2x resolutions #144
Comments
I really like the idea @joerick About the abiguity... yes it is tricky, but the @1x options sounds quite clever for me.
As result the image generation would be slightly slower... but it should not be a problem. About the order, I think we should keep this @2x suffix as the last one, yes. I would really like to merge a pull request with these changes :D |
I also run into this issue. The I agree that Allow the user to supply 1x icon is the best solution and has the pull request or update been made yet ? @joerick If not, I wanna have a try, though I'm not quite familiar with python... maybe some instructions would help me :D Or some other way to improve the quality of @1x icons generated by glue ? |
I think this would be great. I really need this functionality to make the whole thing integrate nicely into my our current setup. I'd recommend searching for It's also worth adding an option to change the infix to Finally, even though we're talking about |
The automatic image scaling is a great feature for faster development but when images should be pixel perfect (specially important in the smaller ones) the only way is to provide our own images. Rendering small images directly from vector graphics works better than scaling down. And another benefit is that the resulting files are also usually smaller since the dithering produced by scaling images down doesn't compress as much as the pixel perfect versions. So I agree to:
|
Currently when the
--retina
flag is used, the input images are assumed to be the 2x version and the 1x version is generated by scaling. I'd like the option to provide two resolutions of each icon and have the 1x version used instead of a scaled version.Apple's convention for this in UIKit and AppKit are to have
filename.png
and[email protected]
for each asset. I see glue has adopted this in it's output, perhaps we could do the same for input files, so for a filenames like:I'd like to supply a pull-request, but I'd like the maintainer's/community's opinion on a couple questions-
--retina
and--ratios=
commands, or make something separate?Advantages of rolling into the existing commands would be that the user could supply pixel-perfect 1x versions for some icons and accept the scaled versions for others. Only problem with that is the abiguity between the fact that normally a filename without '@2x' goes to the '@2x' spritesheet, but in this case a filename with '@2x' goes to the standard resolution spritesheet (or we could adopt a convention of '@1x' instead?)
[email protected]
ornav-arrow-left@2x_hover.png
. I think I'm in favor of[email protected]
.The text was updated successfully, but these errors were encountered: