I made some modifications to the pictures module to allow transparent
indexed colors images and tumbnail in the albums without loosing the
I attach the code to this message in case you want to include this
functionality in a future version.
I added a class (in the Thumbmaker.cs file) to the Helpers folder.
This class handles the resize, in particular the one of indexed colors
graphics that in not taken care of by the .NET classes.
It uses pointer arytmmetic to map the color indexes in the thumbnail, so it
has to be compiled with the unsafe directive.
I added code to call that class in PictureEdit.aspx.cs. (All commented as
Only the GIF files keep their palettes when loaded into the Bitmap object of
GDI+, so they are the only ones that I use the IndexedRezise method for.
The resulting thumbnails are saved as PNG to avoid LCZ compression patent
problems when generating a GIF dynamically.
All other file formats are changed into JPG as it was originally.
The same changes would also apply to the e-commerce module.