Note that there are some explanatory texts on larger screens.

plurals
  1. POPortrait image resizing in java with imgscalr, but the final output is landscape. How to guarantee it stays the same orientation?
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COFelipe, I am the author of imgscalr; what I think might be happening is that your picture is actually in landscape mode, but the ORIENTATION Exif data in the image indicates that it should be rotated, so when you view it in a picture viewer, it shows it in portrait mode (but was actually taken with the camera turned sideways). imgscalr currently doesn't consider EXIF data from the original image when generating a scaled copy, but I think it needs to. I've filed an issue to try and address this in a future release.
      singulars
    2. CORiyad, thank you very much for your comments. I tried with some other images, and you must be right. Some of them imgscalr are being scaled in the correct orientation. So the problem is with the original file indeed. But if you can work around this would be really great. I am trying to have a 100% java solution, instead of relying on ImageMagick. Tks anyway
      singulars
    3. COFelipe, I'll get that feature in shortly; it requires a bit of good engineering and thinking so it's not a quick fix, but I'll make sure it gets in there and done in a nice/tight way. Thank you for the feedback!
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload