feature: Better image handling #41

Closed
opened 2022-12-09 01:59:55 +08:00 by Apethesis · 1 comment
Apethesis commented 2022-12-09 01:59:55 +08:00 (Migrated from github.com)

Is your feature request related to a problem? Please describe.
I am frustrated cause its difficult to add support for another image format to Basalt (cimg2 in my case).

Describe the solution you'd like
I would like for there to be some kind of more modular way of handling images, perhaps with a separate library.

Describe alternatives you've considered
Modifying most Basalt code just so it might work.

**Is your feature request related to a problem? Please describe.** I am frustrated cause its difficult to add support for another image format to Basalt (cimg2 in my case). **Describe the solution you'd like** I would like for there to be some kind of more modular way of handling images, perhaps with a separate library. **Describe alternatives you've considered** Modifying most Basalt code just so it might work.
NoryiE commented 2022-12-25 18:54:03 +08:00 (Migrated from github.com)

It may not be necessary to add additional image formats if there is no significant benefit over existing ones. Bimg has become the primary image format for advanced image functionality in CC. Within basalt, bimg is always used internally, which means that in your case, you will need to convert cimg2 to bimg in order to be able to load cimg2 files. You can find the image library where changes need to be made here: https://github.com/Pyroxenium/Basalt/blob/master/Basalt/libraries/images.lua#L28

It may not be necessary to add additional image formats if there is no significant benefit over existing ones. Bimg has become the primary image format for advanced image functionality in CC. Within basalt, bimg is always used internally, which means that in your case, you will need to convert cimg2 to bimg in order to be able to load cimg2 files. You can find the image library where changes need to be made here: https://github.com/Pyroxenium/Basalt/blob/master/Basalt/libraries/images.lua#L28
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GitHub/Basalt#41
No description provided.