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

Allow metadata retrieval #67

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Allow metadata retrieval #67

wants to merge 2 commits into from

Conversation

vseventer
Copy link
Owner

@vseventer vseventer commented Jun 22, 2022

This Pull Request:

  • Adds a --dry flag that, when set, allows you to do dry runs (i.e. do everything except write files).
  • Adds a --printMetadata flag that, when set, prints a metadata structure (JSON) containing metadata of the input and output.

Example

An example of the resulting metadata (WIP):

{
  input: {
    format: 'jpeg',
    size: 30985,
    width: 500,
    height: 331,
    space: 'srgb',
    channels: 3,
    depth: 'uchar',
    density: 72,
    chromaSubsampling: '4:2:0',
    isProgressive: false,
    hasProfile: false,
    hasAlpha: false,
    path: 'input.jpg'
  },
  output: {
    format: 'jpeg',
    width: 200,
    height: 132,
    channels: 3,
    premultiplied: false,
    size: 7742,
    path: 'output.jpg'
  }
}

Things to Note:

@vseventer vseventer added this to the v2.2.0 milestone Jun 22, 2022
@vseventer vseventer self-assigned this Jun 22, 2022
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.

1 participant