User Tools

Site Tools


images

====== Supported images formats ====== Lightning supports at least the following image format * JPEG: fast, good compression ratio, but no transparency, most suited for wallpapers * PNG: lossless, support for transparency, most suited for icons, buttons, decorations * GIF: low colors, single level transparency, most suited for animations * SVG: (subset, see below) vector image format, lean and mean implementation that can be used with bindings and scripted * Nine patch: PNG image with extra data to let them scale nicely. Useful for borders and backgrounds. * Scripted image : use a script to draw any graphics (this is some kind of vector graphics) * Other images format may be supported but depends on the platform capabilities. ====== Ways to import images ====== Lightning supports image selection through its internal image picker, which gives access to the following sources: * external: pick a photo from your gallery or using an external file browser * icon pack: pick icon from an icon pack (if it does not work, use "application", see below) * application: pick image from the resources found in any application installed on the system * camera: snap a picture and use it in Lightning * color: use a plain color. Using a fully transparent color is an effective way to 'cancel' an inherited background, or to remove folder's icon background. ====== Transparency in images ====== Transparency is supported in Lightning with PNG, GIF (no alpha blending), nine patch, scripted image and SVG, not JPEG. ====== Notes regarding SVG ====== As of V14.2, Lightning Launcher supports the following subset of the SVG specification: * elements: rect, circle, ellipse, path, group, svg, linearGradient, radialGradient * transforms: matrix, translate, rotate, scale, skewX, skewY * style: fill, fill-opacity, stroke, stroke-width, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-dasharray, stroke-dashoffset, stroke-opacity, display (only with value "none") * linear and radial: with stop offsets and gradient transform. Gradients can be used in fill and stroke using the url(#gradient_id) syntax SVG images in Lightning can be dynamically modified through scripts and bindings (for instance change the background of a battery icon from green to red according to the current level).

images.txt · Last modified: 2017/02/27 19:44 by pierrox