how to get metadata width and height after trim
See original GitHub issueIs there a way to get width and height metadata after trim?
let transform = sharp()
    .trim()
    .metadata()
    .then(function(metadata) {
        console.log(metadata)
    })
return readableStream
            .pipe(transform)
This doesn’t seem to work
Thanks
Issue Analytics
- State:
 - Created 6 years ago
 - Comments:8 (4 by maintainers)
 
Top Results From Across the Web
can i get image file width and height from uri in android?
For folks having content uri (starting with content:// ), open an InputStream & decode that stream to avoid getting 0 width and height....
Read more >Resize, crop and other common transformations
In the pad resize crop strategy, the output image's dimension (height and width) is the same as requested, no cropping takes place, and...
Read more >Usage — Thumbor 7.2.0 documentation
-Ex-F means resize the image to be ExF of width per height size. The minus signs mean flip horizontally and vertically;; HALIGN is...
Read more >Working with the ImageView | CodePath Android Cliffnotes
Fixing the width and height however means that the proportions of the width and height of the original image, known as the aspect...
Read more >PART 4: SCALES AND SIZING · Fiji Basics
To find the calibration in the metadata, ensure Display Metadata is selected in the ... Under width enter the size you'd like the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thank you for even more context. In the above example,
padding_widthhas a value of0whenextend()is called ontransformer3.You’ll probably want to defer this assignment, something like:
thank you it works beautifully!