Coder Social home page Coder Social logo

Comments (7)

rbreu avatar rbreu commented on August 22, 2024

Could you upload the screenshot that caused the issue as a zipped file? The problem is if you upload it as an image, most sites do some image conversion stuff with it that might remove the metadata that caused the issue. Maybe I can reproduce the issue on my machine if I got the screenshot exactly as it is on your machine.

from beeref.

troy-lamerton avatar troy-lamerton commented on August 22, 2024

Screen Shot 2021-08-11 at 09.44.04.png.zip

from beeref.

andrsd avatar andrsd commented on August 22, 2024

I ran into this as well. Basically any image I dropped into the main window is flipped (images saved from web or my own photos).

I tracked it down and attached patch fixes the issue:

--- a/beeref/fileio/image.py
+++ b/beeref/fileio/image.py
@@ -51,6 +51,8 @@ def exif_rotated_image(path=None):
 
     transform = QtGui.QTransform()
 
+    if orientation == exif.Orientation.TOP_LEFT:
+        return img.mirrored(horizontal=True, vertical=False)
     if orientation == exif.Orientation.TOP_RIGHT:
         return img.mirrored(horizontal=True, vertical=False)
     if orientation == exif.Orientation.BOTTOM_RIGHT:

However this would suggest that the orientation of the horizontal axis in Exif does not match what Qt thinks. So, definitely not the final fix to apply. Just an insight on what I found out...

IDK if this is MacOS X specific. I can try on Windows. I don't have a linux machine around.

EDIT: I was missing not in "definitely not the final fix to apply." 🤦

from beeref.

rbreu avatar rbreu commented on August 22, 2024

Orientation.TOP_LEFT means that the image is already in the correct orientation and shouldn't be transformed further. I can reproduce this problem on Linux and with images that don't have exif information in the first place, so that part of the code isn't even reached — the QtGui.QImage(path) at the beginning of the function returns the images flipped for some reason.

I'll investigate this further.

from beeref.

rbreu avatar rbreu commented on August 22, 2024

To clarify, you are both using the dev/master version from github, right? Because I found a bug that I introduced when I added text items. I'm going to close this bug with the fix; if you have issues with the released 0.1.1 version, please reopen this bug.

from beeref.

andrsd avatar andrsd commented on August 22, 2024

Yes, I am using main since it has the Mac OS X tweaks. I can test with 0.1.1.

from beeref.

andrsd avatar andrsd commented on August 22, 2024

Just tested with 0.1.1 and this is not happening there.

from beeref.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.