Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #20153

    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?

    #106485

    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 fullsize

    You can change the width and height then use this plugin http://wordpress.org/extend/plugins/regenerate-thumbnails/ to regenerate the thumbnails.

    Regards,

    Ismael

    #106486

    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.

    #106487

    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,

    Ismael

    #106488

    Thanks!

    #106489

    Glad that Ismael got you back on track.

    Thanks,

    Nick

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Image size issue for portfolio’ is closed to new replies.