- Posts: 14116
- Thank you received: 1639
Thumbnails - Display Order and Clipping Issue
-
steveki
- Topic Author
- Visitor
13 years 6 months ago #8890
by steveki
Thumbnails - Display Order and Clipping Issue was created by steveki
Can someone help me with rendering of thumbnails by Photo Gallery Plugin?
The thumbnails seems to be trimmed top and left edge. This is obvious on those images which have a white border all around. See following page.
www.thelatentimagephotography.com.au/ind...rticle&id=6&Itemid=7
Also, I can't generate a article with images in numerical order. It works on my server but not on the hosting server.
Thanks
Steve
The thumbnails seems to be trimmed top and left edge. This is obvious on those images which have a white border all around. See following page.
www.thelatentimagephotography.com.au/ind...rticle&id=6&Itemid=7
Also, I can't generate a article with images in numerical order. It works on my server but not on the hosting server.
Thanks
Steve
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
13 years 6 months ago #8900
by ivan.milic
Replied by ivan.milic on topic Re: Thumbnails - Display Order and Clipping Issue
Hi,
to sort images by name , open the plugins\content\photogallery.php
find this :
...
$html = '<!-- HOT Photo Gallery Plugin starts here -->';
$html.= '<div id="gallery">';
$image_files = get_files($images_dir);
if(count($image_files)) {
$index = 0;
...
and add sort :
...
$html = '<!-- HOT Photo Gallery Plugin starts here -->';
$html.= '<div id="gallery">';
$image_files = get_files($images_dir);
if(count($image_files)) {
sort($image_files);
$index = 0;
...
The white line on the upper and left edge is lost during residing when making thumbs. That's the way php built-in function makes it. But when the pligin is first time executed over some image it makes thumb then and that thumb stays. Location of thumbs folder in original images folder. You can run the plugin first time and then delete thumbs that it made, and using some quality tool like Adobe Photoshop or Picasa make thumbs your self and overwrite those that plugin made.
to sort images by name , open the plugins\content\photogallery.php
find this :
...
$html = '<!-- HOT Photo Gallery Plugin starts here -->';
$html.= '<div id="gallery">';
$image_files = get_files($images_dir);
if(count($image_files)) {
$index = 0;
...
and add sort :
...
$html = '<!-- HOT Photo Gallery Plugin starts here -->';
$html.= '<div id="gallery">';
$image_files = get_files($images_dir);
if(count($image_files)) {
sort($image_files);
$index = 0;
...
The white line on the upper and left edge is lost during residing when making thumbs. That's the way php built-in function makes it. But when the pligin is first time executed over some image it makes thumb then and that thumb stays. Location of thumbs folder in original images folder. You can run the plugin first time and then delete thumbs that it made, and using some quality tool like Adobe Photoshop or Picasa make thumbs your self and overwrite those that plugin made.
Please Log in to join the conversation.
-
steveki
- Topic Author
- Visitor
13 years 6 months ago #8924
by steveki
Replied by steveki on topic Re: Thumbnails - Display Order and Clipping Issue
You're a life saver!
thanks
Steve
thanks
Steve
Please Log in to join the conversation.
Time to create page: 0.146 seconds