I'm using this theme mostly to showcase my photographs. However, I've noticed that when use the "Featured Media/Add Image to Slideshow", it always shows a resized 930px image (even though in the options I pick full size) and thus degrading the image quality. How can I make it show the the original image?
Image size issue for portfolio
6 posts from 3 voices-
Posted 3 months ago #
-
Hello,
You can edit functions.php and find this code
$avia_config['imgSize']['fullsize'] = array('width'=>930, 'height'=>930, 'crop'=>false); // big images for lightbox and portfolio single entries $avia_config['imgSize']['featured'] = array('width'=>930, 'height'=>340); // images for fullsize pages and fullsizeYou can change the width and height then use this plugin http://wordpress.org/extend/plugins/regenerate-thumbnails/ to regenerate the thumbnails.
Regards,
IsmaelPosted 3 months ago # -
So I found the code. Is there away to have the width and height to be whatever is the original size? I tend to have the images around 1000px but the height can vary higher, and the numbers may change in the future.
If I had to put a number, would it be bad to set it to 2000px to be safe? Thanks.
Posted 3 months ago # -
Hi zhiwan,
You can use the value 9999 to make the height and width flexible. However, angular's container width is only limited to 930px, so it's better to set the width to a fixed size which is 930px and set the height to be flexible. Try changing this code:
$avia_config['imgSize']['fullsize'] = array('width'=>930, 'height'=>930, 'crop'=>false); // big images for lightbox and portfolio single entries $avia_config['imgSize']['featured'] = array('width'=>930, 'height'=>340);to this code:
$avia_config['imgSize']['fullsize'] = array('width'=>930, 'height'=>9999, 'crop'=>false); // big images for lightbox and portfolio single entries $avia_config['imgSize']['featured'] = array('width'=>930, 'height'=>9999, 'crop'=>false);Use the regenerate thumbnails afterwards.
Regards,
IsmaelPosted 3 months ago # -
Thanks!
Posted 3 months ago # -
Glad that Ismael got you back on track.
Thanks,
Nick
Posted 3 months ago #
Topic Closed
This topic has been closed to new replies.














