Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Investigate if it's possible to embed scale in image metadata #6

Open
emersion opened this issue May 13, 2018 · 3 comments
Open

Investigate if it's possible to embed scale in image metadata #6

emersion opened this issue May 13, 2018 · 3 comments
Labels
enhancement New feature or request

Comments

@emersion
Copy link
Owner

@emersion emersion added the enhancement New feature or request label May 13, 2018
@ammgws
Copy link
Contributor

ammgws commented Dec 10, 2019

Any ideas on how to implement it for png? It doesn't seem trivial using just cairo: https://lists.cairographics.org/archives/cairo/2017-February/027882.html

Ideas

  1. Edit file metadata after first writing it to disk using cairo (janky?)
  2. Stream output to a variable and then edit that before writing to disk (possible using cairo_surface_write_to_png_stream??)
  3. Basically recreate all the cairo png functions here just to add a call to png_set_pHYs

@emersion
Copy link
Owner Author

Basically recreate all the cairo png functions here just to add a call to png_set_pHYs

We already do that for other formats, so why not.

@ammgws
Copy link
Contributor

ammgws commented Dec 13, 2019

Fair enough. I might give it a go then.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants