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

imageio: WebP import with libwep, and other ported fixes. #245

Merged
merged 13 commits into from
Dec 14, 2023

Conversation

AlynxZhou
Copy link

I tried to backport some fixes. It build and run on my system, but I hardly use this program to process non-RAW images, so if other people get error with this, please @ me.

@AlynxZhou AlynxZhou force-pushed the add-webp-reading branch 3 times, most recently from bdd872c to a9246c0 Compare December 4, 2023 14:25
src/common/imageio_webp.c Fixed Show fixed Hide fixed
@AlynxZhou AlynxZhou force-pushed the add-webp-reading branch 2 times, most recently from 0ab3822 to eee8608 Compare December 7, 2023 06:22
@AlynxZhou
Copy link
Author

Hm, please don't merge this PR until I finished changes on desktop entry, because I am planning move desktop entry related changes here into another PR, thanks!

@AlynxZhou
Copy link
Author

Hm, please don't merge this PR until I finished changes on desktop entry, because I am planning move desktop entry related changes here into another PR, thanks!

I removed CMake/desktop entry related commit from this PR (and submit another PR for those), this should have no conflict with master now.

Mostly ported from darktable-org/darktable. Because we already export
webp with libwebp, this won't add new dependency. Also find libwebpmux
in CMake module.
Mostly ported from darktable-org/darktable. GraphicsMagick could also
import WebP and it's easy to implement.
This makes easier to call importers, and removes a lot of redundant code
that already done in importers.
Those files support both HDR and LDR, while we typically treat them as
HDR, we need to set them to LDR if detected.
Mostly ported from darktable-org/darktable, the original PR has full
explanation about why we need this, see
<darktable-org#13210>.
Mostly ported from darktable-org/darktable.
Mostly ported from darktable-org/darktable. Refer to
<https://github.com/AOMediaCodec/libavif/wiki/CICP#unspecified>, `BT601`
and `BT401BG` here are identical for libavif.
libheif could also handle AVIF, this adds the same fix we have in AVIF
importer.
There is no direct mapping for P3 with MC, so those values are all not
wrong, see
<https://github.com/AOMediaCodec/libavif/wiki/CICP#common-cicp-triples>.
As well as AVIF exporter.
Mostly ported from darktable-org/darktable. ImageMagick could also
import WebP and it's easy to implement. This also allows ImageMagick to
read image profile.
@aurelienpierre aurelienpierre merged commit 702c4c5 into aurelienpierreeng:master Dec 14, 2023
13 checks passed
@aurelienpierre
Copy link
Collaborator

Thanks !

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.3% Duplication on New Code

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants