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.

implement exif mirror orientations

See original GitHub issue

Hi,

In Image.new_from_file doesn’t work in some cases. In the following image, it works correctly (simple rotation), with a mirrored image it doesn’t work.

image = pyvips.Image.new_from_file(path, access='random', memory=False, autorotate=True, **kwargs)`

The image left,right and down works, the other not.

What am I doing wrong? Thanks a lot for your help.

down-mirrored left left-mirrored down right-mirrored right

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ZanonEdoardocommented, Nov 6, 2019

Hello, libvips only supports the rotation orientations, not the mirror ones.

I don’t know of any real devices that use the mirror codes – they only appear in test suites.

Hi, Thanks for your answer. The webcam photos can produce mirrored images. Can be this feature supported in libvips - pyvips in the future?

In the front cam of Samsung s10, I can generate an image mirrored. (reflection)

0reactions
ZanonEdoardocommented, Mar 24, 2020

Thanks @yunixon, i’ve forgot to add the images!

Read more comments on GitHub >

github_iconTop Results From Across the Web

JS Client-Side Exif Orientation: Rotate and Mirror JPEG ...
The github project JavaScript-Load-Image provides a complete solution to the EXIF orientation problem, correctly rotating/mirroring images ...
Read more >
JPEG Image Orientation and Exif - jdhao's digital space
The Exif orientation flag can have nine different values from 1 to 9. The image below shows eight of them: Typically, you will...
Read more >
Rotate Photos to be Upright - Sirv Help Center
How to rotate photos so they appear upright. Save time with auto-rotate and use Sirv to fix incorrect EXIF orientation values in your...
Read more >
Writing to the EXIF:Orientation Tag
Those are the simple rotations settings. But the exif standard also allows the image to be mirrored. Exiftool is flexible on what you...
Read more >
Developers - implement exif mirror orientations -
implement exif mirror orientations. libvips. 06 November 2019 Posted by jcupitt. It seems some devices do use the mirror modes, ...
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