This Script-Fu script contains functions that non-destructively convert the active image to various user specified iOS images and app icons.
The following describes the conversion process. First, the active image is duplicated. Second, if scaling is required, scaling is applied to the duplicate image. Next, the duplicate image is exported with a name that follows the iOS naming convention ("@2x.png" for Retina images and ".png" for Non-Retina images, as well as proper iOS app icon names when exporting app icons). Finally after completion of the export, the duplicate image is destroyed. Each image generated started with a clean duplicate copy of the active image.
This script is also located at: https://github.com/m2orris/GIMP-scripts
This script contains three functions.
File --> iOS Export --> Image as --> App Icons for Device(s) ...
The recommended resolution of the active image is 1024 x 1024.
The following are the possible iOS app icon filenames (and resolutions):
iTunesArtwork@2x (1024 x 1024)
iTunesArtwork (512 x 512)
Iconfirstname.lastname@example.org (144 x 144)
Icon@2x.png (114 x 114)
Icon-72.png (72 x 72)
Icon.png (57 x 57)
Icon-Smallemail@example.com (100 x 100)
Icon-Small-50.png (50 x 50)
Icon-Small@2x.png (58 x 58)
Icon-Small.png (29 x 29)
File --> Export as iOS --> Image(s) ...
Scaling will be either down, up, or none, depending upon the user specified size and the active image's resolution. Scaling is either square or rectangular. Square scaling results in image(s) that have the width and height equal to the size specified. Rectangular scaling results in image(s) that have either the width or height equal to the size specified and the other dimension scaled proportionally.
If the user specifies that both Retina and Non-Retina images are to be exported, the resolution of the resulting iOS Retina image will be equivalent to the size specified while the resolution of the resulting iOS Non-Retina image will be half of the size. If the user specifies only a Retina or only a Non-Retina image is to be exported, resulting iOS image will be equivalent to the size specified.
The recommended resolution of the active image is equivalent to the resolution of the largest image to be exported.
File --> iOS Export --> Retina Resolution Image as --> Image(s) ...
The resulting iOS Retina image has the same width and height as the active image. The resulting iOS Non-Retina image has half the width and half the height as the active image.
The recommended resolution of the active image is equivalent to that of the resulting iOS Retina image.