Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal - Extract PImage.save implementations and delegate to internal ImageWriter #116

Draft
wants to merge 5 commits into
base: master
from

Conversation

@Minimaximize
Copy link
Contributor

@Minimaximize Minimaximize commented Aug 1, 2020

Related to #80

Extract save implementations from PImage (and subclasses) and instead delegate to an implementation of processing.core.io.ImageWriter.

eg. TiffImageWriter for encapsulating logic for writing Tiff image files.

Benefits

  • This removes the responsibility of image serialization away from PImage, reducing complexity.
  • Makes java.awt a transient dependency, making it easier to remove in future.
  • Makes it possible to write unit tests for individual file formats.
@Minimaximize Minimaximize marked this pull request as draft Aug 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.