<p dir="auto">Hi guys, thanks for such a wonderful library. I want a special type of image transformation.</p>
<p dir="auto">This custom transformation should scale the image down maintaining the original aspect ratio so that one dimension of the image is exactly equal to the target dimensions and the other dimension of the image is greater than the target dimensions.</p>
<p dir="auto">Can I achieve this effect using <code class="notranslate">CENTER_CROP</code> or should I write custom transformation? Please help me out.</p>
<p dir="auto">If I need to write custom transformation, please help me writing it.</p>
<p dir="auto"><strong>Glide Version/Integration library (if any)</strong>: 3.6.0<br>
<strong>Device/Android Version</strong>: any<br>
<strong>Issue details/Repro steps/Use case background</strong>:</p>
<p dir="auto">How to repo:<br>
I have a demo app with this bug here: <a href="https://github.com/yrizk/glide-centercrop-bug">https://github.com/yrizk/glide-centercrop-bug</a></p>
<p dir="auto">but essentially...<br>
no scale type declared in the xml<br>
centerCrop() when loading image into an imageview.<br>
make sure the app is cleared from memory</p>
<p dir="auto">The image will start w/o the center crop, then if you scroll past or above it, then sometimes it comes back with the correct scale type.</p>
<p dir="auto">on a separate note, the library is really good! thank you guys for building and supporting this</p>