Problem with images and Chrome, Firefox, IE - html

I have a Joomla website and I observe a problem with some images.
In Chrome images look really good and sharp but in Firefox and IE the images are not that sharp and the colors are a bit strange.
Take a look at the photos below. The difference is more obvious on the Standings were the emblems of the teams are really small.
Any suggestions??
Image using Chrome
Image using Firefox
Website URL:
http://www.neasalamis.net

You're telling the browser to scale the image from 150 pixels to 60 pixels.
Most browsers aren't good at that.
You should create images that are exactly the right size using an image editor.
This will give you complete control over how the image is scaled (image editors do a much better job than Firefox), and make the files smaller too.

Related

Background image with background-size looks bad on IE and Edge

It looks perfect in chrome and firefox, but the scaling in IE and Edge is terrible. The size is good but the image looks sharper, the actual image is 2 times bigger than the background size. Is there a way to fix it, I've tried several things I found on stackoverflow but nothing seems to work.
The problem is your relying on the browser to resize your images. Browsers have notoriously poor rendering when scaling images. You should use a specific size and pre-format them in a graphic package beforehand.
I would also consider using an SVG for what you are trying to achieve (I assume the scaled down image is so that on different resolutions, things still look good?) I would seriously consider the flexibility it would give you.

Chrome adding artifacts to smaller sized PNGs?

Was using Photoshop's Quick Export to PNG with a 250x59px grayscale image. Chrome vs Safari vs Firefox comparison (ok nevermind about Firefox it's whack):
Tried searching the chromium groups for anything similar but didn't find anything specifically like this. Anyone know what's going on? Only seems to happen on smaller sized images, this same image not scaled down from 2000+ px does not show the same inner glow-y stuff.
Link to actual file:
https://s3-us-west-1.amazonaws.com/haven-images/greyscale_logo_250x59.png

css image resize messing up only in firefox and IE, works fine in safari and chrome

So i'm using image css image resizing on a website i've created www.luciaphotography.co.uk , the only problem is that if you hover over the images in FF or IE the text in them looks blurry even though the image's original aspect ratio is 1:1.
Have a look at www.luciaphotography.co.uk and hover over the images (all but the first one as the first image is in the exact size) in chrome or safari, you'll see the text looks fine but try in FF, some look fine some don't and in IE all (except the first) look blurry.
Are there any work arounds without uploading the original image in the exact size?
This is a well know downscaling bug. The downscaling quality of the different browsers vary widely. I don't know of any working workaround..
I think it would be best if you just resize the images beforehand, so that you have a guaranteed outcome quality across all the browser.
It is in general not a good idea to let the browsers do the downscaling. Especially such a huge one like in your case (997px -> 154px).
You could try the image-rendering property, but I don't think it would improve your outcome as much as you want to.

Serving identical double-sized images to retina display computers AND non-retina computers?

On my website, I have a 1300x200 image that I am forcing down to 650x100 using the simple width=650px parameter in the img tag. What happens when a retina Mac/iPhone/iPad user views my site. Will they see the full quality 1300x200 image, or will the quality artificially be reduced by half?
As far as whether or not this is efficient, it's just a 50k PNG. My site is otherwise mostly vectored with text/CSS. You could argue this is more efficient than messing with browser-agent detecting Javascript.
Ok folks, I went about answering it myself, and yes, if you use the width tag to half-size an img in HTML, the retina browser will display the full sized image.
I displayed the 1300x200 image half-sized using width on the top, and the plain 650x100 image on the bottom. Zoomed in using Safari on iOS 6.

High Resolution Image IE Browser Rendering

I am optimizing my site for these higher resolution monitors (especially the new iPad). I have the site formatted the way I want, and I was just increasing the resolution of each image but still constraining it to the DIVs that I currently have. For example, I have an image with a resolution of 483x246 and I have it fitting a DIV with a set size of 188x96.
The images look great on Chrome, Firefox, and most importantly on the new iPad. Even zoomed in it's nice and crisp (as opposed to my old 188x96 image that looked blurry and pixelated when zoomed in)
The problem comes in when I open the page in IE. It displays the image at the correct size but it's jagged. See link to comparison below. I know it's an issue with the way IE resizes and renders pictures on the fly.
My question would be, is there a way to make IE display the picture nicely? If not, is there a way I can put in the code so that if it detects IE, it displays my old low res image? I've looked everywhere but haven't found anything that relates to my specific problem. I know this is a small example but my bigger images do the same thing and are more noticeable. I hope you all can help. Thanks. :)
Comparison:
Have you tried putting this in your CSS?
img { -ms-interpolation-mode: bicubic; }
There's also this https://github.com/adamdbradley/foresight.js which looks very interesting
Make sure IE9 isn't in compatibility mode or IE7/8 mode...
The reason this happends if because the bitmapdata is actually rendered completely different in the IE browser, the thing IE does is it "cuts" away pixels over a set ratio so like every 5 pixels it yanks a pixel and therefor makes it look like it misses certain gradient properties.
not much you can do about this except for keeping the aspect ratio set but I guess you would've known that by yourself already