Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Weird Image probs with Thumb Images

Quote Reply
Weird Image probs with Thumb Images
Problems with images.
I have 2 images that are not displaying in listing or detailed page.
This is very confusing due to regexp and mod rewrite rules.
Also, I am using Thumb_Images plugin from UltraNerds.

My link.html template has this code:
Code:
<%if Image%>
<td width="160" valign="top">
<div id="linkimage">
<a href="<%detailed_url%>" target="_blank"><%img_src_image%></a>
</div>
</td>
<%endif%>

Which outputs to this html. I have verified that the images ARE
exactly where the <img> tag points to and are named like the html
below shows them being named. So the images are there, the urls are
correct, and yet no image displays. Too Weird.
1) Category: World, Link: The Johnny Rocker Band
2) Category: Metal, Link: Blizzard of Ozz
Code:
<td width="160" valign="top">
<div id="linkimage">
<a href="http://www.supportmusicians.com/Detailed/93.html" target="_blank"><img src="http://www.supportmusicians.com/files/6/66-100_1061.JPG" border="0"></a>
</div>
</td>

<td width="160" valign="top">
<div id="linkimage">
<a href="http://www.supportmusicians.com/Detailed/92.html" target="_blank"><img src="http://www.supportmusicians.com/files/5/65-blizzard.jpg" border="0"></a>
</div>
</td>

The global sub "img_src_image" called from link.html (above) is
Code:
sub {
my ($rec) = @_;
my $id = $rec->{ID};

if ($rec->{Image})
{
my $links_db = $DB->table('Links');
my $fh = $links_db->file_info( 'Image', $id );
my $location = $fh->File_RelativePath;

if($fh->File_Name =~ /\.(jpg|gif|png|JPG|GIF|PNG)$/) {
return qq~<img src="$CFG->{build_root_url}/files$location" border="0">~;
}
else {
return "Invalid file name.";
}
}
else {
return "";
}
}

In links>properties, for the field 'Image', the RegEx is:
^([%\w-]+\.(?:jpe?g|JPE?G|gif|GIF|png|PNG)|)$

The only other thing that could be interfering is the CSS or rewrite rules.
So here's the css:
#linkimage {
padding: 0px 0px 0px 0px;
margin: 0px 3px 0px 0px;
width: 150px;
text-align: center;
background: none;
}

Some things to note:
Non-displaying image 1 is named "100_1061.JPG". Note uppercase JPG and underscore.
Non-displaying image 2 is named "blizzard.jpg". Note lowercase JPG.
Both of these links were added after installing Thumb_Images plugin.
They are the only 2 images I am having problems with.
In Firefox, I see the blizzard.jpg, but nothing for 100_1061.JPG
In Safari, I see nothing for blizzard.jpg, and a '?' for 100_1061.JPG

Any ideas/suggestions?

Thank you,
Chris
RGB World, Inc. - Software &amp; Web Development.
rgbworld.com
Subject Author Views Date
Thread Weird Image probs with Thumb Images rgbworld 3570 Apr 26, 2006, 1:24 PM
Thread Re: [rgbworld] Weird Image probs with Thumb Images
aus_dave 3494 Apr 27, 2006, 6:41 PM
Thread Re: [aus_dave] Weird Image probs with Thumb Images
rgbworld 3485 Apr 27, 2006, 8:57 PM
Post Re: [rgbworld] Weird Image probs with Thumb Images
eupos 3455 Apr 27, 2006, 11:56 PM
Thread Re: [aus_dave] Weird Image probs with Thumb Images
rgbworld 3469 Apr 27, 2006, 9:11 PM
Post Re: [rgbworld] Weird Image probs with Thumb Images
rgbworld 3450 Apr 28, 2006, 8:12 AM