-
AuthorPosts
-
August 29, 2017 at 7:05 pm #845417
Hi,
I don’t know if it’s from Theme or Wordspress settings?
But… Too many variations of media files after upload.
19 different resolutions of one JPG file! Plus original resolution… :)
How can I reduce them to … 3? or… i don’t know…My second question is how can I change the size of lightbox images?
Now is 1030 pixels maybe…Thanks :)
August 29, 2017 at 11:13 pm #845499in FUNCTIONS.PHP:
$avia_config[‘imgSize’][‘widget’] = array(‘width’=>36, ‘height’=>36); // small preview pics eg sidebar news
$avia_config[‘imgSize’][‘square’] = array(‘width’=>180, ‘height’=>180); // small image for blogs
$avia_config[‘imgSize’][‘featured’] = array(‘width’=>1500, ‘height’=>430 ); // images for fullsize pages and fullsize slider
$avia_config[‘imgSize’][‘featured_large’] = array(‘width’=>1500, ‘height’=>630 ); // images for fullsize pages and fullsize slider
$avia_config[‘imgSize’][‘extra_large’] = array(‘width’=>1500, ‘height’=>1500 , ‘crop’ => false); // images for fullscrren slider
$avia_config[‘imgSize’][‘portfolio’] = array(‘width’=>495, ‘height’=>400 ); // images for portfolio entries (2,3 column)
$avia_config[‘imgSize’][‘portfolio_small’] = array(‘width’=>260, ‘height’=>185 ); // images for portfolio 4 columns
$avia_config[‘imgSize’][‘gallery’] = array(‘width’=>845, ‘height’=>684 ); // images for portfolio entries (2,3 column)
$avia_config[‘imgSize’][‘magazine’] = array(‘width’=>710, ‘height’=>375 ); // images for magazines
$avia_config[‘imgSize’][‘masonry’] = array(‘width’=>705, ‘height’=>705 , ‘crop’ => false); // images for fullscreen masonry
$avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>321); // big images for blog and page entries
$avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1210, ‘height’=>423 ); // images for fullsize pages and fullsize sliderIf I have a site for wedding photography … and put 30 galleries with 300 pictures each … I’ll have 180,000 files
This is the limit of my hosting plan :DWhat is the solution?
August 30, 2017 at 12:50 am #845535Now I’m looking for 768×513 size … Where this code is made … :(
August 30, 2017 at 1:03 am #845537The problem is solved!
This code removes the 768 size …function paulund_remove_default_image_sizes( $sizes) {
unset( $sizes[‘medium_large’]);
return $sizes;
}
add_filter(‘intermediate_image_sizes_advanced’,’paulund_remove_default_image_sizes’);—— ! ! ! ——-
In Settings -> Media -> set to 0
in functions.php make correction ;) Except 36×36 thumbnails :D
in enfold/config-woocommerce/config.php make correction
… and voilà !
August 31, 2017 at 7:58 am #846111 -
AuthorPosts
- The topic ‘Too many variations of media files’ is closed to new replies.