Home › Forums › ZA WordPress Theme › Gallery Images Bad Performance
Tagged: image performance, image raster
- This topic has 11 replies, 4 voices, and was last updated 9 years, 9 months ago by
SeaTheme.
-
AuthorPosts
-
September 27, 2015 at 2:12 pm #8443
Soul
ParticipantHello again, this is quite important, since I use to work with design and photography.
Please can we find some way to get better performance on images in gallery? If I use full width image (one in a row) with no sidebar, there is significant loose of quality (especially when thin texts to or lines are used in graphics), although the original image is much bigger then the preview. After the lightbox is opened, the quality is good, on zoom it is still good.
Let have a look
http://souldesign.eu/isometric-web-app-mockup/Is the gallery using the auto generated thumbnails to load less weight and speed the loading?
Thank you, Soul.
September 28, 2015 at 12:55 am #8445Hi, Soul
Is the gallery using the auto generated thumbnails to load less weight and speed the loading?
yes
plz login ftp, find:
/themes/za/template/single/portfolio-template.php
line 32 and line 138
<img alt="<?php echo get_the_title(intval($portfolio[$index])); ?>" src="<?php echo esc_url($thumb[0]); ?>" width="800" class="list-layout-img gallery-images-img">
update to:
<img alt="<?php echo get_the_title(intval($portfolio[$index])); ?>" src="<?php echo esc_url($thumb_full[0]); ?>" width="800" class="list-layout-img gallery-images-img">Cheers!
Bwsm – uiueux.com
September 29, 2015 at 10:10 am #8463Soul
ParticipantWorks Fine, thank you. Currently Im using Xcode, where I can’t see the line numbers, search founds the code on four places, is it ok to replace all of them?
September 29, 2015 at 10:54 am #8467Soul
ParticipantHave two more questions
1. Could you add this as option to theme setup? Just because this is impossible to setup in child theme and after update the changes will be lost.
2. Where to change the code if I would like to apply to blog posts too? It seems that it doesn’t appear on blog category although the post template should be the same.
Lets have a look and see the difference on performance of first and second image
http://souldesign.eu/horse/Thax a lot. Soul
September 29, 2015 at 12:19 pm #84681. Could you add this as option to theme setup? Just because this is impossible to setup in child theme and after update the changes will be lost.
I am not sure now, but we’ll focus on it
2. Where to change the code if I would like to apply to blog posts too? It seems that it doesn’t appear on blog category although the post template should be the same.
Lets have a look and see the difference on performance of first and second image
I am not clear this question, I checked this page, something wrong?
September 29, 2015 at 12:30 pm #8470Soul
ParticipantHi, thank you. The second horse image still looks blurry (especially on watermark) on page preview (in lightbox it is ok) but here I really don’t understand, cause the fisrt one looks ok). Don’t take me bad, but I need the site be like “When one see the product, he wants to buy it”.. Espetially in design and photography it is basic requirement to look clean.
September 29, 2015 at 11:44 pm #8484It seems you replace the code in one place only, there are 2 places need to replace (line 32 and line 138)
If it doesn’t work, please leave your wp-admin(url/user/pass) and FTP as private reply, I’ll log in to check it.
October 7, 2015 at 4:27 pm #8544BPERRIN
ParticipantHi,
I had the exact same issue as Soul on my site with the gallery images.
Fixed very easily with the two code lines in portfolio-template.php 🙂 🙂 🙂
All images are now very sharp.I saved my fixed portfolio-template.php file if it needs to be replaced after the next theme uptade.
I loooooooove this theme ! 🙂
October 8, 2015 at 12:53 am #8552Thanks for the information, BPERRIN. 🙂
I’ll consider to make a study to add a option.October 24, 2015 at 9:25 am #8741Soul
ParticipantWorks nice now, thank you, Soul.
August 26, 2016 at 6:11 pm #11072Hi,
could you help for me too? 🙂 My problem same as Soul. Please watch: http://ityuart.hu/jobmotiv/
The picture is not clean … it’s little misty …hummm?Best,
ityu
August 29, 2016 at 1:08 am #11073Hi ityu, I checked your page, it is not same as what’s page Soul talked about. He talked Gallery format template, your gallery is built by Gallery Shortcode. Did you want the image szie bigger?
-
AuthorPosts
- You must be logged in to reply to this topic.
