1

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.

Abu Saeed
  • 1,020
  • 8
  • 21
  • You are right: the problem is related to the EXIF metadata of your image. Here (https://stackoverflow.com/questions/48716266/sharp-image-library-rotates-image-when-resizing) you can see another example of the same problem and a solution for sharp plugin. I suggest you to search for EXIF metadata in relation to Glide plugin. – Emilio Dalla Torre Dec 05 '22 at 17:07

0 Answers0