Coil does not upscale resources
See original GitHub issueDescribe the bug
When I download a resource from URL and its size is smaller than the requested size in the GetRequestBuilder
, result is not upscaled. On the contrary, when I set a smaller size inside my GetRequestBuilder
, the resource is correctly downscaled.
To Reproduce
Download this image using Coil.get(url) { size(256, 256) }
Expected behavior I would expect to have a resulting drawable of 256x256 instead of the 24x24 provided
Library version 0.6.1
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
combining array coil signals and phase unwrapping - PMC
Combining the information from coils is not trivial, however, ... the need to coregister (or upscale) the low‐resolution maps of φ 0 r...
Read more >50 Cal Coil Gun : 5 Steps - Instructables
1. A coil gun works on the principle of electromagnetic attraction. The coil gun itself is akin to an air cored solenoid. A...
Read more >The 5 Best Innerspring Mattresses of 2022
Because of the coils, innerspring mattresses are inherently more breathable than all-foam mattresses. However, depending on the amount and type ...
Read more >30 MODBUS - Arlyn Scales
The Arlyn UpScale can support multiple Modbus Communication modes ... Do not worry if it does not connect to your scale yet. ......
Read more >Sparking Ideas - DIYODE Magazine
The devices most commonly known as Tesla coils are high-voltage ... Battery power is the way to go no matter what type of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@r4phab This is currently intended behaviour. Coil avoids loading images at a larger size than necessary to conserve memory. This behaviour is also fairly core to how Coil handles the dynamic sampling crossfade effect.
If you need to upscale an image, I’d recommend creating a
Transformation
that scales the input Bitmap. If you’re drawing to a Canvas, you can also scale the Bitmap using drawBitmap.Thank you @colinrtwhite for your prompt response and your explanations