+Team Fjordies Posted March 13, 2020 Share Posted March 13, 2020 (edited) I am creating a page for a new cache and came across a weird (and for me somewhat annoying) bug. On the page I want to include a picture that, for reasons I don't want to discuss here, is just 25x25 pixels. Since that isn't really viewable for humans I want to make the image larger on the webpage. That is not too hard, since I can change the width & height just fine. But since it's a pixelated image, the image does not look like I want to. Since we're not allowed to use a style-block (understandably), I try to use inline css. This is my code: <img src="#insert-image-url-here#" style="width: 400px; height: 400px; image-rendering: pixelated; image-rendering: -moz-crisp-edges; image-rendering: crisp-edges;"> On my testpage (plain HTML) this works fine, but if I use this on my cachepage, the html changes to this after saving: <img src="#insert-image-url-here#" style="width:400px;height:400px;image-rendering:crisp-edges;" /> And that is not the same... The page looks fine on FireFox, but on Chrome the image does not look like I want to. Edited March 13, 2020 by Team Fjordies Quote Link to comment
+Viajero Perdido Posted March 13, 2020 Share Posted March 13, 2020 (edited) As a workaround, perhaps you could take a screenshot of the expanded image when it's displayed the way you want, trim, and instead use that larger image. I'm guessing it's a puzzle, exact behavior is important, and this solution wouldn't help. In which case, never mind, good luck. Edited March 13, 2020 by Viajero Perdido 1 Quote Link to comment
+Team Fjordies Posted March 13, 2020 Author Share Posted March 13, 2020 1 hour ago, Viajero Perdido said: As a workaround, perhaps you could take a screenshot of the expanded image when it's displayed the way you want, trim, and instead use that larger image. I'm guessing it's a puzzle, exact behavior is important, and this solution wouldn't help. In which case, never mind, good luck. The exact image is quite important in this case, but thanks for the suggestion Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.