Comments (7)
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.
Screen Shot 2021-08-11 at 09.44.04.png.zip
from beeref.
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.
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.
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.
Yes, I am using main
since it has the Mac OS X tweaks. I can test with 0.1.1
.
from beeref.
Just tested with 0.1.1
and this is not happening there.
from beeref.
Related Issues (20)
- Transparent Overlay Mode
- Chocolatey Package HOT 7
- Fails to start on Linux with Wayland < 1.19.91 HOT 1
- [Feature Request] Autosave & Recovery for unsaved files HOT 1
- app crashes when trying to save in linux HOT 2
- Fails to Save or Load on a Mapped Network Drive HOT 1
- Image optimization
- Freez when loading a "jpeg" image, other image have no problem HOT 1
- build.txt (requirements file) is missing exif, lxml and rectangle-packer HOT 2
- add a shortcut to navigate through images...
- Suggesting a Portable Version that does not require Admin rights HOT 4
- Flatpak: BeeRef fails to start. Throws a critical Qt error (cannot mix incompatible Qt libraries) HOT 3
- Unable to launch with failure to initialize QT platform plugin error on Linux Mint 21.2. HOT 3
- Exception when URL contains non-ASCII characters HOT 1
- [Feature Request] Configurable margin for the exported image
- Dark mode theme issue on Windows
- [Feature Request] open images directly into a new beefile HOT 3
- Pinterest drag and drop problem HOT 5
- QT_STYLE_OVERRIDE not working
- Deleting images won't reduce the file size from the first saved size. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beeref.