- Posts: 21
COMMUNITY FORUM
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- Flickr Gallery smart resize doesn't work
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.
Flickr Gallery smart resize doesn't work
- ExquisM
- Topic Author
- Offline
- Junior Member
Less
More
12 years 5 months ago #49630
by ExquisM
Flickr Gallery smart resize doesn't work was created by ExquisM
Hi, I am working on a new site and have run into the following problem.
I am trying to insert a Flickr gallery into the following page: mg3.keepvancouveroriginal.ca/case-studies/retail-services-case-studies.html (The site is offline now. User: Joomlaworks; pw: yqB9wqbi)
The smart resize is enabled, the gallery size is 290x165 (set in the galley parameters): however, the smart resize does not seem to work, and so, the picture does not fit the frame.
The strange thing is, that on the mg3.keepvancouveroriginal.ca/news/world-routes-2010.html page everything works fine using the same Flickr set: the proportions of the picture frames are the same as on the earlier page but the size is smaller.
I am trying to insert a Flickr gallery into the following page: mg3.keepvancouveroriginal.ca/case-studies/retail-services-case-studies.html (The site is offline now. User: Joomlaworks; pw: yqB9wqbi)
The smart resize is enabled, the gallery size is 290x165 (set in the galley parameters): however, the smart resize does not seem to work, and so, the picture does not fit the frame.
The strange thing is, that on the mg3.keepvancouveroriginal.ca/news/world-routes-2010.html page everything works fine using the same Flickr set: the proportions of the picture frames are the same as on the earlier page but the size is smaller.
Please Log in or Create an account to join the conversation.
- Katia
- Offline
- Platinum Member
Less
More
- Posts: 4696
12 years 5 months ago #49631
by Katia
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Katia on topic Re: Flickr Gallery smart resize doesn't work
Are you referring to the thumbs in the first link?
Would you like to give them more width?
Would you like to give them more width?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- ExquisM
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
12 years 5 months ago - 12 years 5 months ago #49632
by ExquisM
Replied by ExquisM on topic Re: Flickr Gallery smart resize doesn't work
Hi Katia,
Yes, I am referring to the thumbs in the first link (There are three thumbs showing the same Flickr sets.)
The problem is that the photos don't seem to resize (smart resize) and so they don't fill out the thumb frame.
Please note, in the second link, there are thumbs of the same proportion as the thumb of the first link, and the smart resize works there.
Thanks,
Tom
Yes, I am referring to the thumbs in the first link (There are three thumbs showing the same Flickr sets.)
The problem is that the photos don't seem to resize (smart resize) and so they don't fill out the thumb frame.
Please note, in the second link, there are thumbs of the same proportion as the thumb of the first link, and the smart resize works there.
Thanks,
Tom
Please Log in or Create an account to join the conversation.
- ExquisM
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
12 years 5 months ago #49633
by ExquisM
Replied by ExquisM on topic Re: Flickr Gallery smart resize doesn't work
Hi,
Having done some further digging it seems the problem is caused by the fact that for the photo thumb, the Sig Pro API calls the photo in 240*137 px size. So, it is not that the smart resize doesn't work, but the photo the API calls is already resized by Flickr to a size which is not large enough for my thumb frame.
This is the URL of the photo thumb the API calls:
farm8.staticflickr.com/7123/7597685310_708e3085c4_m.jpg
This is the URL of the photothumb of the size I would need:
farm8.staticflickr.com/7123/7597685310_708e3085c4_n.jpg
Please note, the difference between the two URLs are that one ends with "_m.jpg" and the other with "_n.jpg".
Do you know how can this be set up, so the thumbs the API calls are the ones with the URLs ending like _n.jpg?
Thank you,
Tom
Having done some further digging it seems the problem is caused by the fact that for the photo thumb, the Sig Pro API calls the photo in 240*137 px size. So, it is not that the smart resize doesn't work, but the photo the API calls is already resized by Flickr to a size which is not large enough for my thumb frame.
This is the URL of the photo thumb the API calls:
farm8.staticflickr.com/7123/7597685310_708e3085c4_m.jpg
This is the URL of the photothumb of the size I would need:
farm8.staticflickr.com/7123/7597685310_708e3085c4_n.jpg
Please note, the difference between the two URLs are that one ends with "_m.jpg" and the other with "_n.jpg".
Do you know how can this be set up, so the thumbs the API calls are the ones with the URLs ending like _n.jpg?
Thank you,
Tom
Please Log in or Create an account to join the conversation.
- Katia
- Offline
- Platinum Member
Less
More
- Posts: 4696
12 years 5 months ago #49634
by Katia
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Katia on topic Re: Flickr Gallery smart resize doesn't work
mg3.keepvancouveroriginal.ca/case-studies/retail-services-case-studies.html
As far as I can see here, the thumbnails seems to be ok...
As far as I can see here, the thumbnails seems to be ok...
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- ExquisM
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
12 years 5 months ago #49635
by ExquisM
Replied by ExquisM on topic Re: Flickr Gallery smart resize doesn't work
Sorry, we found a solution to the problem by changing the code of the
plugins/content/jw_sigpro/jw_sigpro.php file.
The following changes were made in line 345:
orig; $gallery[$key]->thumbImageFilePath = $photo->url_s;
new: $gallery[$key]->thumbImageFilePath = substr($photo->url_m, 0, -4).'_n.jpg';
This way, the thumbnail is called from Flickr in a one size larger size which is then smart resized to our thumbnail frame size.
Please let me know should you have any further recommendations.
plugins/content/jw_sigpro/jw_sigpro.php file.
The following changes were made in line 345:
orig; $gallery[$key]->thumbImageFilePath = $photo->url_s;
new: $gallery[$key]->thumbImageFilePath = substr($photo->url_m, 0, -4).'_n.jpg';
This way, the thumbnail is called from Flickr in a one size larger size which is then smart resized to our thumbnail frame size.
Please let me know should you have any further recommendations.
Please Log in or Create an account to join the conversation.
- ExquisM
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
12 years 5 months ago - 12 years 5 months ago #49636
by ExquisM
Replied by ExquisM on topic Re: Flickr Gallery smart resize doesn't work
Hello, please note, as far as I am concerned, this thread can be closed.
I seem to have an other issue for which I open a new thread, but just in case, I add the new entry here as well.
The pages where I have the Flickr set thumbs load unacceptably slow.
Please see e.g.
www.mg3.keepvancouveroriginal.ca/case-studies/real-estate-case-studies.html
I have 9 sets on the given page.
For comparison, I uploaded 9 other sets to the website and added them to an other page. This page runs pretty fast:
www.mg3.keepvancouveroriginal.ca/case-studies/retail-services-case-studies.html
Am I supposed to have more then one Flickr set on one page?
If yes, do you have some recommendation re to how the page rendering can be made faster?
Even though the YQL cache is set to 120 mins, it doesn't seem to make any difference compared to when it is set to zero. Any recommendations relative to this?
User: Joomlaworks; pw: yqB9wqbi)
Thank you,
Tom
I seem to have an other issue for which I open a new thread, but just in case, I add the new entry here as well.
The pages where I have the Flickr set thumbs load unacceptably slow.
Please see e.g.
www.mg3.keepvancouveroriginal.ca/case-studies/real-estate-case-studies.html
I have 9 sets on the given page.
For comparison, I uploaded 9 other sets to the website and added them to an other page. This page runs pretty fast:
www.mg3.keepvancouveroriginal.ca/case-studies/retail-services-case-studies.html
Am I supposed to have more then one Flickr set on one page?
If yes, do you have some recommendation re to how the page rendering can be made faster?
Even though the YQL cache is set to 120 mins, it doesn't seem to make any difference compared to when it is set to zero. Any recommendations relative to this?
User: Joomlaworks; pw: yqB9wqbi)
Thank you,
Tom
Please Log in or Create an account to join the conversation.
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- Flickr Gallery smart resize doesn't work