Reputation: 113
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?
Upvotes: 5
Views: 1762
Reputation: 4990
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.
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.
Upvotes: 11
Reputation: 4012
You can try iMigrate, that I created recently. So it wasn't properly tested and you can use it own risk.
Upvotes: 0
Reputation: 829
You can make one of your own using Apple Automator. It is an automating script maker tool provided by Apple with the Mac OS. You can find plenty of online tutorials for it if you Google it up. Here's an example. Click here
Upvotes: -1