2 years ago

#52138

test-img

Abu Saeed

Image become rotated after resizing using firebase extension

two images
First image is the original image and 2nd one is the resized image.(same orientation)
After loading those images using Glide, it shows two different orientation.
Output:
output

Dimension of original(1st) image: 480 * 359px
Dimension of resized(2nd) image: 320 * 240px

Code:

Glide.with(mContext)
                .load(rooms.get(holder.getBindingAdapterPosition()).getPhoto())
                .placeholder(R.drawable.ic_baseline_image_24)
                .thumbnail(.05f)
                .dontTransform()
                .transition(DrawableTransitionOptions.withCrossFade())
                .into(holder.imageViewMP);

I am not understanding if it is because of firebase resizing or because of glide.

I seems to me that firebase resize extension is deleting image exif info after resizing.

imageview

android-glide

exif

firebase-extensions

0 Answers

Your Answer

Accepted video resources