PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Bugs - vBulletin 3.7x / 3.8x (http://www.photopost.com/forum/bugs-vbulletin-3-7x-3-8x/)
-   -   Thumbs & Orig OK, but displayimage.php won't show normal image (http://www.photopost.com/forum/bugs-vbulletin-3-7x-3-8x/142972-thumbs-orig-ok-but-displayimage-php-wont-show-normal-image.html)

bulbasnore May 23rd, 2010 11:42 PM

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.

Luciano May 24th, 2010 11:12 PM

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 May 24th, 2010 11:29 PM

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

bulbasnore May 25th, 2010 09:55 PM

Quote:

Originally Posted by Luciano (Post 1269297)
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!

Luciano May 25th, 2010 11:32 PM

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

bulbasnore May 26th, 2010 12:56 AM

Quote:

Originally Posted by Luciano (Post 1269404)
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. :)

hellodemo November 7th, 2010 09:53 PM

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 November 7th, 2010 09:54 PM

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


All times are GMT -5. The time now is 05:53 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97