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

feat: add support for OpenRaster (ora) format #81

Merged
merged 2 commits into from Jan 1, 2023
Merged

feat: add support for OpenRaster (ora) format #81

merged 2 commits into from Jan 1, 2023

Conversation

chrsmth
Copy link
Contributor

@chrsmth chrsmth commented Nov 19, 2022

What is an OpenRaster File?

spec reference

OpenRaster is an exchange format between layered photo editing programs. It is supported by GIMP, Krita, imagemagick, Scribus, and others. A GIMP project can be exported as OpenRaster, and then opened in Krita for example.

testdata/sample.ora was generated in GIMP, and is the usual cat image, but with a reflection.

mergedimage

Expanding the OpenRaster as a zip reveals a transparent directory structure.

image

Detection

OpenRaster is zip wrapped with unencrypted mimetype file containing "image/openraster".

  • Cyan at offset 0 matching for a zip file
  • Rose at offset 30 matching for the text "mimetypeimage/openraster"
    image

@bojand bojand merged commit 9b6d0b0 into bojand:master Jan 1, 2023
@bojand
Copy link
Owner

bojand commented Jan 1, 2023

Hello, thanks for the PR. This should be available in v0.12.0.

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.

None yet

2 participants