Jump to content


Photo

Thumbnail generator gives errors on some browsers


  • Please log in to reply
4 replies to this topic

#1 Linc

Linc
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 27 March 2006 - 08:22 PM

Hey everyone,

I'm hoping someone here can help me. Basically, I'm trying to put together a really simply product catalog for someone. The problem is that I'm using a thumbnail generator to make the thumbs for product images and it works on every computer I'm tried it on...including friend's computers I've IMed the link to. However, on the clients computers it says that the image uploaded does't exist.

Here's the fun part...everything works fine every computer I've tried it on! Their photos are uploaded and the thumbs are running fine.

Here's a link to the current site: [a href=\"http://store.miracleperformance.com/listing.php?cat=2\" target=\"_blank\"]http://store.miracleperformance.com/listing.php?cat=2[/a]

If anyone has some suggestions or anything, please help!

#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 27 March 2006 - 09:15 PM

We need to see your code.

Ken

#3 Linc

Linc
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 27 March 2006 - 09:31 PM

Well, the actual thumbnail code is courtesy of phpThumb (http://phpthumb.sourceforge.net).

As for the invocation, it's:

while (($prod_row = mysql_fetch_array ($products, MYSQL_ASSOC)))
        {
          echo "<tr>";
          
          echo "<td style=\"border-bottom-style: solid; border-bottom-width: 1px; color:white\" valign='top'><p align='center'>[b]<img src=\"phpthumb/phpThumb.php?src=" . UPLOAD_PATH . $prod_row['filename'] . "&w=310\" width=\"95\">[/b]</p></td>";
          
          echo "<td style=\"border-bottom-style: solid; border-bottom-width: 1px; color:white\" valign='top'><p>$prod_row[product_number]</p></td>";
          echo "<td style=\"border-bottom-style: solid; border-bottom-width: 1px; color:white\" valign='top'><p>$prod_row[title]<br><br></td>";
          echo "<td style=\"border-bottom-style: solid; border-bottom-width: 1px; color:white\" valign='top'><p>24 hours</p></td>";
          echo "<td style=\"border-bottom-style: solid; border-bottom-width: 1px; color:white\" valign='top'><p>$$prod_row[price]</p></td>";
          
          echo "<td style=\"border-bottom-style: solid; border-bottom-width: 1px; color:white\" valign='top'><p><a href='product.php?product=$prod_row[prod_id]'>View Product</a><br /><br /><a href='#'>Add to Cart</a></p></td>";
            //echo "<td style=\"border-bottom-style: solid; border-bottom-width: 1px; color:white\" valign='top'>$prod_row[description]</td>";
            echo "</tr>";
          }

An example of the final <img> code would be: [a href=\"http://store.miracleperformance.com/phpthumb/phpThumb.php?src=/upload/MP2202.jpg&w=310\" target=\"_blank\"]http://store.miracleperformance.com/phpthu...P2202.jpg&w=310[/a]

src = path to the file including filename
w = width of the image

Hope that helps.

--Joel

#4 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 27 March 2006 - 09:34 PM

Are your clients getting any error messages back?

Are you operating the machine or are they? (as impossible as it sems NEVER think that a user is doing everything right - although it should be that they can't!).

Are they trying to upload enourmous bitmaps?

....sned us some more info on what they are doing, how they get the errors and some snippets.

BTW What you have done is not exaclty thumnails - you are just re-sizing the images. No biggie I suppose but will affect page download time, pic quality etc. etc.
follow me on twitter @PHPsycho

#5 Linc

Linc
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 28 March 2006 - 03:56 AM

No, they're not getting any error messages. Well, what happens is when there is an error, it displays the error message in the pic. The error message it's giving them is that the file it's trying to re-size doesn't exist. The wierd thing is that I'm able to see everything fine on my end. They're adding everything properly as far as I can tell since I'm on the phone going through it step by step...plus, I can see the new image on the site as soon as they're done.


And I know they're not nuts (relatively) because I walked them through taking a screen shot and emailing it to me. It honestly looks like the server-side code only craps out on 3 computers in the country :-P!

They're not trying to upload bitmaps or anything, the system only takes jpegs, gifs, and pngs and there's a size limit.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users