Open vseventer opened 2 years ago
--dry
--printMetadata
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' } }
sharp -i ./input.jpg -o ./ --dry --printMetadata
This Pull Request:
--dry
flag that, when set, allows you to do dry runs (i.e. do everything except write files).--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):
Things to Note:
sharp -i ./input.jpg -o ./ --dry --printMetadata
.