SexScripts : Supported Image formats - https://ss.deviatenow.com:443/viewtopic.php?f=4&t=1099 Page 1 of 1

Supported Image formats

arthurb [ Thu Mar 16, 2023 5:23 pm ]

setImage can display .jpg .gif and .png but not formats .bmp .webp and .avif

No error, just no image shown

Is that just a limitation or can setImage be updated to support other formats? I can work around by converting images with e.g. Paint, but it would be nice if I didn't have to.

Also setImage won't display .JPG but OK if I do .toLowerCase() so not sure if the case issue is just a feature or can be fixed.

Re: Supported Image formats

doti [ Wed Mar 29, 2023 10:44 am ]

Yes, SexScripts accepts only GIF, PNG and JPEG image format. The relevant code inside is
Code:
new ImageIcon(imagePath)

https://docs.oracle.com/javase/7/docs/a ... ang.String)

SexScripts doesn't do much more than passing the name and path of the image to this Java function, so it is a limit (except adding some plugins, but it means bigger release, more tests, work for compatibility desktop / Android, more maintenance and risk of failure like the current state of webcam in SexScripts, etc.)
It seems that the JPEG/jpeg extension failure is an old bug (in Java), perhaps only in some versions of Java and not all. If you do .toLowerCase(), your script will fail on Linux and MacOSX, so you should instead rename tour picture to a lowercase name.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
https://ss.deviatenow.com:443/
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2011