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.

Couldn't load large image and how do i scale it?

See original GitHub issue

My HTML text has 1500x1500 image, and it couldn’t be load properly the result is the blur images.

screen shot 2017-06-27 at 3 29 16 pm ??!

Then, how do i scale and style image? I’ve tried

img: {
    	width: 100,
		height: 100,
		marginLeft: -10
  	},

But didn’t work.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:3
  • Comments:17

github_iconTop GitHub Comments

1reaction
RobertWSaunderscommented, Jul 5, 2017

Thanks @richchurcher, that seems to work! It looks like a strange issue, in some scenarios it starts out blurry and then loads in properly, it does occur with smaller image files as well.

1reaction
richchurchercommented, Jul 5, 2017

Thanks @RobertWSaunders that’s useful! Width and height can be passed the old fashioned way, as image attributes I believe (https://github.com/jsdf/react-native-htmlview/blob/master/htmlToElement.js#L18-L24). Try setting an explicit value there and see what happens:

<img src="" width="100" height="100">

I don’t think I can explain why the failure is intermittent though 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Resize and Make Images Larger without Losing Quality
Open the file in Photshop, click on “image size, un-check “Resample image”, then start adjusting the pixel size under width until you reach...
Read more >
How to Make Images Larger Without Losing Quality: Real Tests!
Learn to resize and make images larger without losing quality with the best tools for the job. We compare each enlarger with vigorous...
Read more >
Scale image to fit a bounding box - html - Stack Overflow
The solution is to put the image as background-image and then set the background-size to contain . HTML <div class='bounding-box'> </div>.
Read more >
How to Fix Blurry Images and Icons on Responsive ...
Find the 'break point' where your image resizes to its largest version. You can use your eyeballs for this step unless you think...
Read more >
How to Fix WordPress Image Upload Error Post-Processing of ...
Fixing WordPress "Post-processing of the image failed likely because ... had to have changed or updated, I couldn't tell you what it was....
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