Skip to content

Modernize & Improve Image Loading/Exporting Techinques #49

@ShaharMS

Description

@ShaharMS

The code in ImageTools for loading/saving images from/to files/URLs is pretty rough and old. Heres my plan to renew it, as well as improve the format conversion system overall:

  • vision.format subdirectory which contains everything specific to format conversions
  • vision.format.from:
    • FromBytes: Use different libraries/implementations to load from different image formats
    • FromFramework: Use different implementations to load from different graphics frameworks
  • vision.format.to:
    • ToBytes: Use different libraries/implementations to export to different image formats
    • ToFramework: Use different implementations to export to different graphics frameworks
  • Depracate saveToFile and loadFromFile in favor of different forms of- from/to File/Url/Bytes

And for the more complex stuff (some of these may not get resolved, depends on difficulty/time it takes):

  • Subfolder inside vision.formats for home-made decoders/encoders
  • Implement a JPEG decoder (optionally an encoder, altho one exists in format)
  • Support for decoding/encoding WEBP

Metadata

Metadata

Assignees

Labels

Enhancement ✨New feature, or request for a change/new feature

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions