Add rotation support
See original GitHub issueIt would be good to be able to specify a rotation angle (in multiples of 90 degrees) to be applied to the image before resizing.
We have a use case where on upload we need to read exif orientation data, rotate the image correctly, resize, and then send to the server.
Currently we have to do this by reading the image into a canvas on the main UI thread which negates the point of using pica and webworkers. By only supporting 4 angles for rotation it shouldn’t be too hard to read the pixel data out in a different order and skip using CanvasRenderingContext2D.rotate()
.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:30 (13 by maintainers)
Top Results From Across the Web
Use ad rotation - Google Ads Help
The "Ad rotation" setting allows you to specify how often you'd like the ads in your ad group to be served relative to...
Read more >Configure ViewController rotation settings in Swift 3 on iOS 10
I have an app which was developed to run in Portrait orientation only. Prior to iOS 10 and Swift 3, I could use...
Read more >Rotate a picture or shape - Microsoft Support
Rotate a shape or picture by dragging, selecting a preset angle, or setting the exact degree.
Read more >swift - iOS. How to enable and disable rotation on each ...
On AppDelegate , if you rotate device, push viewcontroller, etc. ... Edit: If you want to support different orientation regarding a flag, you...
Read more >Rotation Control - Apps on Google Play
You can control screen orientation from notification area easily. You also can prevent the other application from changing screen orientation.
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
https://github.com/nodeca/image-blob-reduce - here is pica wrapper for files. It cares about orientation and other file-specific things.
This is absolutely correct and absolutely useless statement 😃. It contains nothing constructive to apply for this package 😃