question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Coil does not upscale resources

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
colinrtwhitecommented, Sep 4, 2019

@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.

1reaction
r4phabcommented, Oct 24, 2019

Thank you @colinrtwhite for your prompt response and your explanations

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found