Hi!
This problem is really start to bug me now, there’s always some new problem showing up all the time.
Im using the ajax preview with a slider, and I want to use it as the only way of viewing the portfolios (no link to the actual portfolio page). This way I get at fast and easy navigated portfolio. Im uploading all my portfolio images with the size 900×675 (a 4:3 format). When in ajax preview, I want people to see the full image (900×675) if they have a big screen enough, and it should be smaller if you have a smaller screen, responsive that is :). But never bigger than 900×675.
Right now, I’ve added the code:
.page-id-165 .portfolio-preview-image { width: 75%; }
The problem is though, when I look at the portfolio preview slider, even if the images is uploaded 900×675, it uses a strange scaled version. If the uploaded image is “Ruddammen.jpg”, it uses “Ruddammen-845×675.jpg”. So it’s not even the right proportions. It feels like it could have something with the wordpress media settings (mine are 80×80 for miniatures, 0x0 for medium and 1030×1030 as maximum for large images, but I can’t figure out why or how.
Please help, Im going nuts solving this. Were almost ready for a launch now after working with this for a half year (not full time though) :)
http://agwp.agarkitekter.se/projekt/
Username: test
Password: test
I think I solved it myself!
In functions.php, I changed the following:
$avia_config[‘imgSize’][‘gallery’] = array(‘width’=>845, ‘height’=>684 ); // images for portfolio entries (2,3 column)
to
$avia_config[‘imgSize’][‘gallery’] = array(‘width’=>900, ‘height’=>675 ); // images for portfolio entries (2,3 column)
Just under I also found this:
$avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>321); // big images for blog and page entries
Changed the width there to 900 too, I don’t really know which one Im using, gallery or “entry with sidebar”?.