Skip to content

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.

2 participants