Icons come in many different sizes, and I'm thinking icon packs should also support that. One theme might want to use 16x16 icons, while another looks better with 32x32.
- Which icon sizes should an icon pack support? 16x16, 22x22, 32x32, 48x48? How about 12 or 10px (e.g. for smaller action icons)?
- How should different sizes be provided? Desktop icon sets usually have folders for each icon size within the icon set's folder.
- Themes could specify a preferred icon size, which the user could also override (on the icon settings page for the theme).
- What to do if an icon is not available in the preferred icon size?
Comments
Comment #1
erofadd commentedYeah, I would like to comment on the last question. If an icon is not available in the preferred icon size, What I experienced in my first time with drupal was this same problem but I used a graphics editor such as gimp or photoshop and change the image size to your preferred size
To be able to do this you must import the image file into your graphics editor and then go to the image button to resize the icon size.
Please remember to save the resized image with the same name of the old file as *.ICO and then copy to replace the old one.
Thanks
Comment #2
ximo commentedAnd of course, themes and modules may want to use tiny icons some places (action icons) and larger ones elsewhere (headers, status messages, etc.).
theme('icon', 'nav-next', 12); // 12x12px "next" icontheme('icon', 'status-warning', 48); // 48x48px "warning" iconComment #3
ximo commentederofadd:
Thanks for the comment! We could require a large-sized original icon image file (eg 128x128 px), and automatically scale it down to a smaller size if one isn't already provided. But the quality of the scaled-down icon wouldn't be that good, especially below 32x32 px. So ideally, we might want to require icon packs to provide icons in 12x12, 16x16, 22x22, 32x32 as a minimum..
Comment #4
yoroy commentedAgreed on 12x12, 16x16, 22x22 and 32x32 as a minimum. For the high-res version of the icon I would recommend 512x512px. The point is kind of mute of course since the design should be done in a vector illustration app, but I found out that in the Windows OS 256x256px is used and 512x512px in Mac OS X.
512x512px might seem large, but it's actually a nice size to design at when viewed @100% in Illustrator or Inkscape. Also, a 512px version makes it possible to re-use (crops of) the icons as an illustration. For blog posts or in marketing materials, etc.
As for dir. structure, I'm also for following the directory structure as used for these icon packs for Gnome: http://art.gnome.org/themes/icon/
I even like the 11 standard contexts that are defined in the spec
I'm structuring my design sources along these contexts, using a directory for each of them in the 'src' folder.
Comment #5
markhalliwellClosing per re-purposing of module. See: #1948240: [icon] Request re-purpose/ownership change