This sort of work was industry standard in Games for decades, and still is. Without color or lines, this should compress very well in PNG or JPEG.Ĭombine the layers into a single image with JavaScript, and your whole "image" could be 15KB or less. Again, all you need is a single 4 bit channel (alpha or grey). You only need a 1 pixel tall image, which you can stretch. You could compress this down to a single 4 bit channel (alpha or grey). The vertical lines with no color or noise.You could probably do it in less than 200 bytes of JS. Even better, use JavaScript to generate the color gradient on the client. This will compress well in PNG and very well in JPEG. The color gradient with no lines or noise.The image from the question looks like a color gradient with vertical lines and some splotches/noise. If you really need to shrink an image, and all the easy suggestions don't work, the final answer is to break the image into compressible pieces and recombine them on the client with scripting. Pngcrush some_8_bit.png -bit_depth 8 -brute -rem alla -reduce some_8_bit_small.png Pngout -c3 -d8 -y -force some_24_bit.png some_8_bit.png Here are the instructions how to convert png24 images into png8 for ie6 goodness, all through the command line using open source tools (i think) pngquant +pngout + pngcrush.ġ- quantize image into 256 (so basically png8′s look crap with large sprites or sprites with a large colour range). You will be able to control compression, number of colours, meta data settings and much more, and select image format (JPEG, GIF or PNG) for your output file.Īnother possibility is to use a combination of pngquant, pngout, and pngcrush, as described here, but this is from the command line. The image optimizer is lightweight, fast and simple to use, yet powerful for advanced users. It uses with a side by side (dual view) or single view interface to compare the original with the optimized image in real time and instantly see the resulting file size. Radical Image Optimization Tool (RIOT for short) is a free image optimizer that will let you to visually adjust compression parameters while keeping minimum file size.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |