question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add rotation support

See original GitHub issue

It 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:30 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
puzrincommented, Jul 8, 2020

https://github.com/nodeca/image-blob-reduce - here is pica wrapper for files. It cares about orientation and other file-specific things.

1reaction
puzrincommented, Dec 5, 2019

This is absolutely correct and absolutely useless statement 😃. It contains nothing constructive to apply for this package 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found