1

I have a layout that resizes my images! But I am facing problem of aliasing in Internet Explorer (v.11). I tried some fixes but no success! What can I do to troubleshoot?

enter image description here

CSS

li > img.frdImage {
    position: relative;
    margin-top:-25px;
    top:50%;
    float:left;
    margin-left:5px;
    border-radius: 50%;    
    width:50px;
    height:50px;
}

jsFiddle: HERE (please open using internet explorer)

Igor
  • 3,573
  • 4
  • 33
  • 55

1 Answers1

0

Use a PHP Image Resize script
Here's an example from PHP.net:

<?php
// File and new size
$filename = 'test.jpg';
$percent = 0.5;

// Content type
header('Content-Type: image/jpeg');

// Get new sizes
list($width, $height) = getimagesize($filename);
$newwidth = $width * $percent;
$newheight = $height * $percent;

// Load
$thumb = imagecreatetruecolor($newwidth, $newheight);
$source = imagecreatefromjpeg($filename);

// Resize
imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);

// Output
imagejpeg($thumb);
?>

Else check this link out:

And use HTTP_USER_AGENT so that it only resizes when the specified browser is in use

<?php
$u_agent = $_SERVER['HTTP_USER_AGENT'];

//First get the platform
if (preg_match('/linux/i', $u_agent)) {
    echo 'linux';
}
?>

Hope it helped