ios automatic migration from images to assets catalog
Asked Answered
F

3

5

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?

Foliolate answered 5/11, 2014 at 6:54 Comment(0)
D
0

You can try iMigrate, that I created recently. So it wasn't properly tested and you can use it own risk.

Deafmute answered 5/11, 2014 at 8:13 Comment(0)
D
11

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.

Dryad answered 19/11, 2014 at 17:25 Comment(1)
This should be the accepted answer. "Import From Project" was exactly what I was looking for, and it imported every image from my Images folder into the asset catalog with a single click. Saved me hours!Confederation
D
0

You can try iMigrate, that I created recently. So it wasn't properly tested and you can use it own risk.

Deafmute answered 5/11, 2014 at 8:13 Comment(0)
T
-1

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

Tenor answered 5/11, 2014 at 7:2 Comment(2)
Downvoter please leave a comment suggesting as to why the answer wqas downvoted. Helps improve my answer / expectation and also contributes to improve general quality of answers.Tenor
@anton Did you find this useful?Tenor

© 2022 - 2024 — McMap. All rights reserved.