Difference between revisions of "Development:Preparing Graphics"

From Camino Wiki
Jump to navigation Jump to search
(add this from the 10.5 toolbar icons bug so it's available)
 
m (use colon for 'following')
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
When preparing TIFF images for use with Camino, the following steps should be taken to ensure that color does not shift and that image file sizes remain reasonable (~1000b for single-image icons, ~4000b for dual-image icons).
+
When preparing TIFF images for use with Camino, the following steps should be taken to ensure that color does not shift and that image file sizes remain reasonable (~1000b for single-image icons, ~4000b for dual-image icons)
 +
 
 +
Images should use the <tt>.tiff</tt> extension (with two “t"s) and be post-processed[https://bugzilla.mozilla.org/show_bug.cgi?id=384725#c13] with <tt>tiffutil</tt>.
  
 
# Open the images in Photoshop and convert the color profile to sRGB
 
# Open the images in Photoshop and convert the color profile to sRGB
 
# "Save As…", uncheck the "Embed Color Profile" box
 
# "Save As…", uncheck the "Embed Color Profile" box
# |tiffutil -lzw| on the file
+
# <code>tiffutil -lzw</code> on the file
 
# Combine the 32x32 and 24x24 tiffs together using the following command (32x32 first):
 
# Combine the 32x32 and 24x24 tiffs together using the following command (32x32 first):
 
#: <code>tiffutil -cat 32x32.tiff 24x24.tiff -out filename.tiff</code>
 
#: <code>tiffutil -cat 32x32.tiff 24x24.tiff -out filename.tiff</code>
 +
 +
Photoshop also embeds some rather persistent EXIF and TIFF metadata (e.g., "Adobe Photoshop CS4"); [http://www.sno.phy.queensu.ca/~phil/exiftool/faq.html#Q7 exiftool] can delete these with the following command (this saves an additional 100bytes or so):
 +
 +
:<code>exiftool -exif:all= -Software= -ModifyDate= filename.tiff</code>
  
 
Let it never be said that Sam does not worry about bread trucks.
 
Let it never be said that Sam does not worry about bread trucks.

Latest revision as of 11:52, 9 November 2010

When preparing TIFF images for use with Camino, the following steps should be taken to ensure that color does not shift and that image file sizes remain reasonable (~1000b for single-image icons, ~4000b for dual-image icons).

Images should use the .tiff extension (with two “t"s) and be post-processed[1] with tiffutil.

  1. Open the images in Photoshop and convert the color profile to sRGB
  2. "Save As…", uncheck the "Embed Color Profile" box
  3. tiffutil -lzw on the file
  4. Combine the 32x32 and 24x24 tiffs together using the following command (32x32 first):
    tiffutil -cat 32x32.tiff 24x24.tiff -out filename.tiff

Photoshop also embeds some rather persistent EXIF and TIFF metadata (e.g., "Adobe Photoshop CS4"); exiftool can delete these with the following command (this saves an additional 100bytes or so):

exiftool -exif:all= -Software= -ModifyDate= filename.tiff

Let it never be said that Sam does not worry about bread trucks.