-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Portrait Pictures shown streched to fit screen #67
Comments
Funny thing: This happens here on GitHub as well, right? ;-) The "problem" is, that your image has the "portrait orientation" set as an EXIF metadate: (sorry, german only, but you can read the marked entry as "Orientation: 6 (90° rotated counter-clockwise)" And Redmine and other systems can't handle this metadate so they ignore it and present the image "as is", which means in landscape without the rotation. On the other hand, the Windows image viewer, Mac OS Viewer and alike can handle this metadate and rotate the image properly. So they're making us think that "something is wrong with Redmine, Github, etc." but it isn't. Normally, when rotating an image in those Desktop programs, the Orientation attribute is reset to 1 upon saving. A similar question has been raised on StackOverflow: https://stackoverflow.com/questions/24658365/img-tag-displays-wrong-orientation I could implement the CSS rule While Chrome isn't implementing this rule, resulting in an non-rotated view which is what you call "wrong format": Testing and seeing this, I will add In the end, I'm stuck doing more because the lightbox library "fancybox" does not have any more options for this. I assume it's a bug how they retrieve the image size from source and I will open an issue at their bugtracker. In the meantime I suggest you rotate and save the image in a desktop application and re-upload on your site. Sorry. |
due to a possible bug in the fancybox library
due to a possible bug in the fancybox library
Done for Redmine 3.4 on branch Done for Redmine 4.0 on branch No new version has been released yet. Still looking for ways to read the EXIF meta data and find a workaround for fancybox. |
A similar fancybox issue got closed: fancyapps/fancybox#2293 So I guess this won't be implemented/fixed and I can'T do anything here at the moment... |
the preview in browser shows the picture in wrong format.
it is portrait, but it streches it to landscape.
try with this picture:
The text was updated successfully, but these errors were encountered: