Couldn't load large image and how do i scale it?
See original GitHub issueMy HTML text has 1500x1500 image, and it couldn’t be load properly the result is the blur images.
??!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:
- Created 6 years ago
- Reactions:3
- Comments:17
Top 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 >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
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.
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:
I don’t think I can explain why the failure is intermittent though 😕