Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ios automatic migration from images to assets catalog

I have really large number of images just in Images folder of my project (just @1x and @2x.png files). It's time to support @3x displays and I've decided to move to assets catalog. Are there any tools/scripts to automate this?

like image 354
Anton Avatar asked Nov 05 '14 06:11

Anton


1 Answers

Normally you already have an Asset Catalog because of your AppIcon. If not, choose File:New:File ... and then select iOS Resource:Asset Catalog.

The images you want to import should be named properly: image.png, [email protected]. If you target both devices: image~iphone.png, image@2x~iphone.png, image~ipad.png, image@2x~ipad.png.

Then select Asset Catalog and press +. Choose the folder with the images you want to import.

Import dialog

Like that it´s very simple to import large numbers of pictures and you can have the same folder structure in your Asset Catalog, as you had before.

like image 119
coco Avatar answered Nov 13 '22 16:11

coco