leaflet-grayscale icon indicating copy to clipboard operation
leaflet-grayscale copied to clipboard

Added Alpha Channel increase file size

Open dagjomar opened this issue 11 years ago • 1 comments

Comparing the file sizes of an original colored tile from OSM (http://tile.openstreetmap.org/3/2/4.png) @ 7.3 KB and The converted greyscale image, which is @ 14.4 KB (twice the size)

After looking at the properties of the two images, I found that the greyscale image has added Alpha Channel information, which results in the 7KB increase.

So... it could probably be optimized ^^

dagjomar avatar Jan 28 '14 15:01 dagjomar

Well, it's just twice, and I doubt that alpha channel is the sole cause for the size increase: new tiles differ from old, and compression algorithm may be different. If you have the time, pull request to fix this would be welcome :)

Zverik avatar Jan 29 '14 07:01 Zverik