Screenshot plugin fix - Serve scaled images

cajkan

Active Member
Hello guys,

I'm trying to improve my website on :
https://gtmetrix.com

They show that my website uses Serve scaled images:
" The following images are resized in HTML or CSS. Serving scaled images could save 18.1KiB (95% reduction). "
" File is resized in HTML or CSS from 200x145 to 43x31. Serving a scaled image could save 9.0KiB (95% reduction). "

How can I customize small screenshots size ?
 

Mark

Administrator
Staff member
need to hack the screenshots.php file:

PHP:
  $work -> resize(400, "screens/{$cleanurl}_med.jpg");
  $work -> resize(200, "screens/{$cleanurl}_small.jpg");
these 2 lines make the medium size 400px wide and the small size 200px wide.
PHP:
  $work -> resize(45, "screens/{$cleanurl}_small.jpg");
that would make all new renders 45px wide.
 

cajkan

Active Member
@Mark I got 1 more question regarding error handling, example:
website.com/asdewqr.php

If users visit the page does the CMS uses queries to display the errors like loads site name and other information and what happens if someone try to spam bot non-existing files to play with the queries and slow down your website ?
 
Top