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.

Questions on Image Resizing

See original GitHub issue

Is there any more documentation on how the image resizing works?

If not, could someone explain these:

  1. Just to clarify maxWidth and maxHeight automatically resize an image, for both iOS/Android. Correct assumption?
  2. If maxWidth = maxHeight = n but for some image, the dimensions are a x b, is the image resized to nxn or are the proportions kept?
  3. Suppose I provide some maxWidth and maxHeight, but upon checking the fileSize, I decide it’s still too large. Is there a way to correct this/change the {options} without showing the ImagePicker again? (Explanation: I am actually more interested in a maxSize than I am in a maxWidth/maxHeight, but I provide max dimensions, with an assumption that it the resized image will be less than the size cap.)
  4. What exactly is the “quality” flag and how does it work?

Thank you!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
marcshillingcommented, Feb 8, 2017
  1. Yes
  2. Proportions should be kept
  3. Not currently
  4. Quality simply changes the photo compression. 0.0 (worst quality) to 1.0 (best)
0reactions
ialmoqrencommented, Jul 6, 2019

@IkerArb @weiliank @marcshilling Does anyone know in what unit the image size is returned on? and how to convert it to bytes

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Resizing? - All About Images - Research Guides
Focuses on many common image questions in regards to image resolutions, resizing images, file types, vector and raster images, scanning, ...
Read more >
How to Resize an Image Correctly | The TechSmith Blog
Answers to common questions about image resizing. Easily resize images and screen captures. Ready to quickly resize images without losing quality? Download a ......
Read more >
Learn Image Resize Q&A – - Frontend Masters
Students ask questions about images on a web page and Jen discusses options for image resizing.
Read more >
Image resizing, maintaing image size - beginner question
I am attempting to resize an image from 480x800 to 320x240. Below are the results. The original image has an oval shaped circle...
Read more >
Image Resizing Question.. - DDISoftware.com
If I set up a custom size in Qimage and leave that to do the crop, I cannot determine where the image is...
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