Skip to content

Instantly share code, notes, and snippets.

@stollcri
Last active November 24, 2017 15:24
Show Gist options
  • Save stollcri/4f24d3fb0ae1ba9beaa419581c6e8e93 to your computer and use it in GitHub Desktop.
Save stollcri/4f24d3fb0ae1ba9beaa419581c6e8e93 to your computer and use it in GitHub Desktop.
Create a lot of Xcode iconset images at once
  1. Create a directory named ORIGINAL with the originals (all named [email protected])
  2. Right-click on the directory and select "Duplicate"
  3. Rename the new directory to ORIGINAL@2x
  4. Go into the directory, select all
  5. Right-click on the selected files and select "Rename N Items..."
  6. Choose "Add Text", enter @2x, choose "after name", and click rename
  7. With all still selected, right-click and choose "Open With > Preview"
  8. In Preview, select all
  9. Use "Tools" > "Adjust Size..."
  10. Adjust size and resolution
  11. Save and quite preview
  12. Move all the files to the original directory
  13. Repeat for @1x, except the final [email protected] images should be name NAME.png
  14. In Xcode, under Assets.xcassets, create a folder for your images
  15. Go back to the directory ORIGINAL
  16. Select all and drag them into the folder you created under Assets.xcassets in Xcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment