- Create a new file (RGB, 72dpi) at the desired size for the illustration
- Copy illustration from design comp
- Paste into the new file
- Ensure the illustration's center point is exactly centered on artboard
- If this is a circular image or has curving shapes right at the edge:
- Relative to center point, scale down the whole image by 1 pixel
- Turn on Pixel Preview, ensure that no pixels are bleeding off the artboard
- Turn off Pixel Preview
- File > Save for Web
- Choose the PNG-24 format
- Use Transparency if needed
- Save in the format
<name>_<size>_ai24bit.png
, e.g.,mortgages_170_ai24bit.png
- Duplicate the artboard so we can create a 2x version for retina displays
- Do not attempt to export a different size by adjusting the dimensions in Illustrator's Save for Web dialog. It won't work.
- Increase the artboard size by a factor of 2, relative to the top left corner
- Move the illustration's center point to the center of the artboard
- Increase the size of the illustration to the size of the artboard
- If this is a circular image or has curving shapes right at the edge:
- Relative to center point, scale down the whole image by 1 pixel
- Turn on Pixel Preview, ensure that no pixels are bleeding off the artboard
- Turn off Pixel Preview
- Save for Web with the larger artboard
- Open each file in Fireworks (find in Self Service or contact Steve Shane)
- File > Image Preview
- Set Format to PNG 8
- If this image has transparency, select Alpha Transparency.
- Ensure Palette is Adaptive and that the maximum number of colors is set to 256.
- Save in the format
<name>_<size>_fw8bit.png
, e.g.,mortgages_340_fw8bit.png
- Copy the two new files to their final location in your project repository
- Rename them to the desired final filenames
- If the images use transparency, run them through
ImageAlpha
(find in Self Service or contact Steve Shane)
- Use the option to automatically send through ImageOptim when completed
- If the images don't use transparency, run them through ImageOptim (find in Self Service or contact Steve Shane)
All done! Now all that you have to figure out is
how you want to call them in your front-end code.
If the images are purely decorative,
endeavor to use them as CSS background images.
If the images are key to the content,
include them with the HTML img
element.
N.B.: For img
usage to be retina-ready, you'll have to use the larger image
and scale it down by half, until we develop a more sophisticated responsive
image solution.
Pro Tip for automating Steps 13–16 for every file exported from AI:
_ai24bit
with an empty string (this should give you the desired final filename)Boom! Now just run the whole lot through ImageAlpha/ImageOptim and you're good to go!