Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #28561


Ignore:
Timestamp:
06/17/2014 11:13:47 AM (9 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28561

    • Property Component changed from General to Media
  • Ticket #28561 – Description

    initial v1  
    11Stop working after updates;
    22One of our staff member report to me bug: problem with images in IE11.
    3  I didn't notice that in firefox  or chrome because images was resize to width and height set in img tag => <img src="some image" width="300" height="180" alt.. >
     3
     4I didn't notice that in firefox  or chrome because images was resize to width and height set in img tag => `<img src="some image" width="300" height="180" alt.. >`
    45but physical size of image is different the image have 1900 pixels width and 1028 pixels height, and was weight approx 550kb, its really slow down a website when we listing wordpress posts with feature image (which is so big right now) and our case study.
    56
     
    78
    89instead of:
    9 
     10{{{
    1011the_post_thumbnail('medium', array('class' => 'media-object'));
    11 
     12}}}
    1213this:
    13 
     14{{{
    1415$get_url = wp_get_attachment_url( get_post_thumbnail_id($post->ID));
    1516$local_small = Stefano_Resizer($get_url,300, 170);
    16 
     17}}}
    1718
    1819and in my theme functions.php:
    19 
     20{{{
    2021/RESIZE IMAGE
    2122
     
    142143        }
    143144}
    144 
     145}}}
    145146its work and make a copy of listed images into declare folder of Stefano function.
    146147