Comments (4)
Sorry, I'm unable to reproduce this using your input image and these parameters. My output picture is not rotated. Are you using the latest commit of this package?
Internally the resizing algorithm has 2 steps: It scales horizontally then scales vertically. It seems that in your case the resizing stops after the first step. But there's no condition in the source code that would do that. Therefore I would need some more information on what's going on in your case.
from resize.
I can confirm the issue with JPEG images. However, at least with JPEGs, I think it's rather an EXIF issue.
Here is the original: http://pbrd.co/1q7lyW8
And here the thumbnail: http://pbrd.co/1q7ljKK
Looking at them in the browser -> both are rotated the same. However: the large one contains an EXIF Orientation
flag saying Left-bottom
. Every program (image editing, file browser, ..) which supports EXIF will display it rotated. My file browser (thunar, Linux) and the one from Apple both support EXIF in file preview. You should be able to confirm this by downloading both and either looking at them in your file browser preview or most image editing programs.. Anyhow: when processing the image with this library, it "seems" like a bug.. until you dig deeper.
So not sure if this classifies as a real bug, but it would be neat if one could keep the EXIF Orientation
flag - or being able to set it (again: might not be the duty of a resize library).
from resize.
Right, the Go image package does not import/export EXIF metadata, therefore every information included in that data will be lost (see #13). A separate package would be necessary to handle metadata.
@sb122k: Can you confirm that the issue might be caused by an Orientation
flag in the EXIF data?
I will close this ticket. If there is any indicator that the issue is caused by something different than EXIF data, I'll reopen it.
from resize.
sorry, long time no attention to this issue, I confirm that is the reason
from resize.
Related Issues (20)
- Benchmark HOT 2
- Don't reverse alpha premultiplication, it's fundamentally wrong HOT 6
- Resized image lost all metadata HOT 1
- 1px black border after resize png images HOT 2
- debian control file have hardcoded version. HOT 1
- Transparent images cause black coloring HOT 1
- panic: index out of range when resize some picture HOT 4
- ycc.go:126: undefined: image.YCbCrSubsampleRatio440 HOT 1
- Panic on Resize HOT 6
- Please version this repository HOT 1
- Increased file size after resizing (downscaling) HOT 4
- image not show on mobile browser after resizing HOT 1
- Panic on resize 2 HOT 2
- Detecting file format HOT 3
- Resizing animated gif HOT 1
- I'm no longer updating this package. HOT 6
- Error output is generated
- png image format is not recognized HOT 1
- High memory usage when processing many high-resolution images
- can you supper tiff
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 resize.