Automatic resizing for 'non-retina' image versions

前端 未结 9 1530
生来不讨喜
生来不讨喜 2021-01-30 15:03

I\'m looking for a solution that can save me from maintaining two versions of the same image, one for Retina displays (aka @2x), one another for non-Retina displays. My goal is

9条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-30 15:28

    I've created http://l4u.github.com/blog/2012/04/02/resizing-retina-images-with-guard-for-cocos2d-iphone-slash-cocos2d-x/ to generate non-hd images on the fly when -hd images are created/updated. It uses guard, guard-shell and imagemagick

    You can replace -hd with @2x.

提交回复
热议问题