PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old May 23rd, 2010, 11:42 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 78
Exclamation Thumbs & Orig OK, but displayimage.php won't show normal image

Normal http://pokegym.net/gallery/files/9/1...-25_249801.jpg exists.
Thumb & orig for this image exist.

However, if you upload an image under about 254 pixels width to this category, displayimage won't show you the normal size image.

2010-5-24 Roserade Ul 23/95 - Image Gallery

(Orig 254 pix wide)

contrast with:

2010-5-24 Roserade Ul 23/95 - Image Gallery

(Orig 240 pix wide)

Image and thumbs have been rebuilt for this category.

Images in question have been uploaded since the 2.5.1 upgrade. The user for this category kept uploading increasingly larger images from our standard 155 pix width until displayimage.php finally showed the image.

Last edited by bulbasnore; May 23rd, 2010 at 11:46 PM. Reason: corrected statement
bulbasnore is offline   Reply With Quote
Old May 24th, 2010, 11:12 PM   #2 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
2 things..
1. why are u using displayimage..??
displayimage is only used to watermark images on the fly..
but when I look at
http://pokegym.net/gallery/files/9/1...-25_249801.jpg
it seems to be watermarked permanently allready so does not need to be watermarked a second time on the fly..
does the problem persist if you turn watermark off?
I meen if you do not watermark the files (or watermark permanently)
then you would NOT be using displayimage AND we could see if the files exist.

2. check your filetype settings (acp->vbgallery->edit filetypes):
As a general rule:
max width should be the same as max height
AND min width & height should be smaller than that value.

Example:
max width and height both set to 300

IF you upload an image that is bigger than 300px height or bigger than 300px width (example 350px wide and 250 px high)
you will have an original 350x250
a normal image about 300x20x
and a thumbnail
but
if you upload an image that is 299x200
You will NOT have an original.. as the image is smaller than 300
it will not be resized.
so you have :
normal image 299x200
and thumbnail..

------------------

you say you have set max width to 155
then you must have set max height to something different.. or left it empty
this can give unpredicted results depending on the image itself.

what it does.. it first checks if upload image is wider than maxwidth..
if not, it does nothing..
then it checks if is higher than max height.. if yes.. it will resize.. if no it does nothing..

so depending on what you have set as max height, it will only resize images that are wider than 155 px
------------

short answer:
1. turn watermark off (remove the filename from the field in acp)
we will then be able to see what the files look like.. (if they exist etc)

2. set your filetype to max width = max height and regenerate normal images (for that cat only) I would suggest you use a small cat to run tests.. so that you will not have to regenerate hundreds of images...

Luc
Luciano is offline   Reply With Quote
Old May 24th, 2010, 11:29 PM   #3 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
there can also be another problem...
display image will do strange things IF
your watermark logo is wider or higher than your image.. and you are using GD2 as resize method.
if this is the case open forums/includes/functions_gallery_imageedit.php

around line 633 find:
Code:
Content visible to verified customers only.
and replace with:
Code:
Content visible to verified customers only.
this will remove the watermark logo width & height check..

Luc
Luciano is offline   Reply With Quote
Old May 25th, 2010, 09:55 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 78
Quote:
Originally Posted by Luciano View Post
there can also be another problem...
Luc
You are brilliant...

http://pokegym.net/gallery/siteimages/gymwatermark.png - the watermark image - is 253 pixels wide.

If the uploaded image is 254 pixels wide, it shows up, if not, it doesn't.

==

Just to answer your questions, not to justify our craziness...

Our staff wants to get discussion going on a card. They download it from our gallery with the watermark on it. The resize it and upload it to this 'Card of the Day' category, and I have a CMPS module that displays the last uploaded image from that gallery on page one (and links it to the discussion forum for Card of the Day). This way the members know what card we're discussing.

No one has ever remarked on the double watermark, that I can recall, except you. And well... we should have removed the watermark from the CotD gallery.

And now we have

==

I've also made a smaller watermark to employ if needed in other categories.

Thanks, Luc!
bulbasnore is offline   Reply With Quote
Old May 25th, 2010, 11:32 PM   #5 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
glad I could help..
you can also make the modification above, removing the width check..
the only thing that will happen is that the watermark will go over the border of the image.. but that is a smaller problem than the image not showing..

Luc
Luciano is offline   Reply With Quote
Old May 26th, 2010, 12:56 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 78
Quote:
Originally Posted by Luciano View Post
glad I could help..
you can also make the modification above, removing the width check..
the only thing that will happen is that the watermark will go over the border of the image.. but that is a smaller problem than the image not showing..

Luc
Yes, I'm definitely keeping that in mind. There will be situations where that might be the only way to fix the images. Although, I prefer not to edit the application files, if only because I have to re-edit on upgrade.
bulbasnore is offline   Reply With Quote
Old November 7th, 2010, 09:53 PM   #7 (permalink)
Registered User
 
Join Date: Nov 2010
Posts: 2
Someone check <a href="http://www.nflmlbstore.com/">Troy Tulowitzki</a>. Find out where he's been stored between games. by elite cornerback Nnamdi Asomugha on Sunday, <a href="http://www.nflmlbstore.com/">nfl footall Larry Fitzgerald</a> was limited to just two catches <a href="http://www.nflmlbstore.com/">Darrelle Revis</a> Something is up with that guy <a href="http://www.nflmlbstore.com/">Andre Johnson</a>.<a href="http://www.nflmlbstore.com/">NHL hockey Jonathan Toews</a>, stats, game logs, career, drafted, and more hockey news for Jonathan Toews <a href="http://www.nflmlbstore.com/">sewn and Customized jerseys</a>. It's the kind of thing that makes you just facts, <a href="http://www.nflmlbstore.com/">mlb baseball Vladimir Guerrero</a> news and notes on Troy Tulowitzki of the <a href="http://www.nflmlbstore.com/">Troy Tulowitzki</a> Colorado Rockies. player Pau Gasol news, stats,game log,hometown,college, basketball draft info and more for <a href="http://www.nflmlbstore.com/">NBA basketball Pau Gasol</a> Sells football shirts,<a href="http://www.nflmlbstore.com/">netherlands jerseys and kits</a>, football kits, socks and clothing for various national teams including England, Germany
hellodemo is offline   Reply With Quote
Old November 7th, 2010, 09:54 PM   #8 (permalink)
Registered User
 
Join Date: Nov 2010
Posts: 2
Someone check Troy Tulowitzki. Find out where he's been stored between games. by elite cornerback Nnamdi Asomugha on Sunday, nfl footall Larry Fitzgerald was limited to just two catches Darrelle Revis Something is up with that guy Andre Johnson.NHL hockey Jonathan Toews, stats, game logs, career, drafted, and more hockey news for Jonathan Toews sewn and Customized jerseys. It's the kind of thing that makes you just facts, mlb baseball Vladimir Guerrero news and notes on Troy Tulowitzki of the Troy Tulowitzki Colorado Rockies. player Pau Gasol news, stats,game log,hometown,college, basketball draft info and more for NBA basketball Pau Gasol Sells football shirts,netherlands jerseys and kits, football kits, socks and clothing for various national teams including England, Germany
hellodemo is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[suggestion] Modify vBGallery displayimage.php to display thumbs dfidler vBGallery Suggestions 0 August 30th, 2008 06:00 PM
Med. & Large Images Don't Show After Reinstall - Thumbs OK... ragomez Photopost Pro Installation & Upgrades 3 April 11th, 2006 07:22 AM
displayimage.php Restriction Problems TraumTeam Installs and Upgrade - vBulletin 3.5.X 1 October 13th, 2005 01:42 PM
displayimage.php not returning images honestjohn Installs and Upgrade - vBulletin 3.0.X 3 May 3rd, 2005 11:42 AM


All times are GMT -5. The time now is 09:12 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0