-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
MediaStore thumbnails aren't rotated correctly. #400
Comments
I want to extend FilterOutputStream to write out the orientation in my output stream: FileOutputStream out = new ExifOrientationOutStream(path, orientation);
bitmap.compress(Bitmap.CompressFormat.JPEG, 80, out);
out.flush(); I appreciate it if you can guide me in the correct direction to write a ExifOrientationOutStream |
@eicm Can you file a new issue? That might be a little out of scope for the project though. When do you want to write out the exif orientation? |
I'm not sure it would be in the scope of the project, do you want me to open it as a new issue? EndPointManager.downloadImage(context, Request.Priority.NORMAL, url, new Listener<Bitmap>() {
@Override
public void onResponse(Bitmap bitmap) {
...
FileOutputStream out = new ExifOrientationOutStream(path, orientation);
bitmap.compress(Bitmap.CompressFormat.JPEG, 80, out);
out.flush();
... |
Yes, new questions should be in new issues (you can reference other use ones by number if you want more context in the new one.) Why don't you just rotate the Bitmap based on orientation before writing? I'm sure you can find simple utility methods for that by Googling. |
I'm rotating it in the onResourceReady() call back based on the orientation. I understand it's out of the scope, don't worry about it I will find it myself. |
Branching out of #395
The text was updated successfully, but these errors were encountered: