- Introduce png folder.jpg (40.64 KiB) Viewed 6045 times
Any chance of introducing a pngfolder
-
- Posts: 42
- Joined: Fri Mar 12, 2021 10:33 pm
Re: Any chance of introducing a pngfolder
This has been asked for by others: viewtopic.php?p=10830
Despite the performance caveats, I have also had a need (for alpha purposes) and appreciate the bump.
But, who knows, maybe already implemented in the next version!
Despite the performance caveats, I have also had a need (for alpha purposes) and appreciate the bump.
But, who knows, maybe already implemented in the next version!
-
- Posts: 42
- Joined: Fri Mar 12, 2021 10:33 pm
Re: Any chance of introducing a pngfolder
Yes for alpha purposes here as well - here's hoping Eric is on it for the future...
Re: Any chance of introducing a pngfolder
time to add my +1
-
- Posts: 715
- Joined: Sun Sep 14, 2014 8:15 am
- Location: UK
- Contact:
Re: Any chance of introducing a pngfolder
+1 for me too, but I don't have many pngs to deal with so am happy with workarounds that let me use jpgfolder.
In the past, I have converted "cutout" png files to "green screen" jpg files that I could chroma key to recover transparency.
For png images with more subtle alpha content perhaps one could separate that into a separate greyscale image and make a double-width composite jpg with the alpha as (say) the right-hand half. A simple ISF module could then reconstitute the original image using rgb from the left half and alpha from the right. I haven't tried this, and suspect there may be an issue with reading in the double width file meaning it would be scaled to half height. The technique would then only be useful for half-width "sprites".
In the past, I have converted "cutout" png files to "green screen" jpg files that I could chroma key to recover transparency.
For png images with more subtle alpha content perhaps one could separate that into a separate greyscale image and make a double-width composite jpg with the alpha as (say) the right-hand half. A simple ISF module could then reconstitute the original image using rgb from the left half and alpha from the right. I haven't tried this, and suspect there may be an issue with reading in the double width file meaning it would be scaled to half height. The technique would then only be useful for half-width "sprites".
-
- Posts: 9
- Joined: Sat Jan 06, 2024 5:44 am
Re: Any chance of introducing a pngfolder
An "ImageFolder" module that could handle all supported image types in a single directory would be easier to use than having a module for each file type.