|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Image Gallery restrictions
Couldn't believe that there was an Image Gallery tutorial on here, and so with abaited breath got GD installed on a Apache web server and configured a quick script to ensure that the GD .DLL was loaded etc and working correctly - of course, then realised that also included it in it's report.
However, whilst testing this tutorial out, I'm finding that GD doesn't appear to create the thumbnails that I was expecting - in fact all I'm seeing is broken image links. The graphics that I'm browsing can be quite large, and I'm wondering if there are any restrictions in the filesize of the jpeg's (ranging from 5Kb - 732Kb on a test sample of 26images) The script does appear to be reading my (Windows2000) folder, as the correct number of images appear etc, but just not the scaled down images? Any ideas?? (and phpinfo() reports that JPG support is enabled) GD = 2.0.15 OS = Windows 2000 Professional, SP4 PHP = 4.3.4 API = Apache 2.0 Handler Tutorial used from http://codewalkers.com/tutorials.php?show=53&page=1 |
|
#2
|
|||
|
|||
|
RE: Image Gallery restrictions
the last time somebody had this problem, it turned out that they didn't have the three files from the tutorial in the same folder together. and the time before that, it was because they weren't using the full server path within the configuration file.
|
|
#3
|
|||
|
|||
|
RE: Image Gallery restrictions
Notepad,
Thanks for replying so quickly. All PHP files are in the same folder, and have already checked if they need to be in the actual images folder, and the same thing happens, just broken image links. Full path is in the config.php file, and again I've tried with and without the drive letter (even though test system only has one drive) - still no bananas... (or images ;o)) Even tried backslashes as opposed to forward, but just got errors on that... I was thinking that this would've been a GD problem maybe, rather than a PHP one, as the correct number of images is listed when I click on the View ALL link... |
|
#4
|
|||
|
|||
|
RE: Image Gallery restrictions
i don't think you have the right path in your config file. lemme see your phpinfo file
|
|
#5
|
|||
|
|||
|
RE: Image Gallery restrictions
(phpinfo() info sent via personal message)
|
|
#6
|
|||
|
|||
|
RE: Image Gallery restrictions
and interestingly enough, right clicking on each broken image link (in this case an image called "phone3-microracer.jpg") shows the correct filename (ie, http://localhost/image_gallery/imgsrc.php?src=/apache2/htdocs/images/phone3-microracer.jpg)
|
|
#7
|
|||
|
|||
|
RE: Image Gallery restrictions
maybe your path is case sensitive? try:
capital "A" there.. |
|
#8
|
|||
|
|||
|
RE: Image Gallery restrictions
Nope, Windows2000 doesn't worry about things like that (sometimes a good thing, sometimes not so!) but again, have tried and no joy sir...
I just can't help but think that theres a problem with GD - the script pulls up the correct number of images, as well as the image names themselves (see posting above about right clicking on the broken image itself) but I can't understand what could be the problem...?? |
|
#9
|
|||
|
|||
|
RE: Image Gallery restrictions
well okay, run a test GD script to see whether or not the library is working..
|
|
#10
|
|||
|
|||
|
RE: Image Gallery restrictions
Ok, get a small image, white background with "A Simple" text in purple...
|
|
#11
|
|||
|
|||
|
RE: Image Gallery restrictions
well that means the library is working. the reason i believe that you're getting dead images, is because imgsrc.php is not recognizing the PATH that it is being sent.
does that make sense? |
|
#12
|
|||
|
|||
|
RE: Image Gallery restrictions
|
|
#13
|
|||
|
|||
|
RE: Image Gallery restrictions
|
|
#14
|
|||
|
|||
|
RE: Image Gallery restrictions
Nope, still no wonderfully recreated images on my page.
What I've also done to check the accessing of these images is use a screen capture utility to capture the information that's listed in Internet Explorer's toolbar... The AVI shows that each image being called fine, such as: (11 items remaining) Downloading picture http://localhost/gallery/imgsrc.php?src=/Apache2/htdocs/images/phone3-microracer.jpg... (just thinking - the src= *is* the file structure path determined by PATH in the config.php file isn't it, and not a relative address from within the website?) Dave |
|
#15
|
|||
|
|||
|
RE: Image Gallery restrictions
correct, src is the full server path to the image, not the standard web folder address.
i've been playing with the script on my own system, and apparently (depending on how your script files/folders are arranged, like if storing images outside the webtree) you may need to alter the line as mentioned within my previous post.. but you say that doesn't work and i can't really think of any other reason why it shouldn't work i could be a lot more helpful if you had a visual example thrown up. or if you could provide a directory listing of your system, so i can see where the gallery files are stored and where the images folder is, etc.. that way i could simulate the same setup. this doesn't look right to me /localhost/gallery/ "gallery files" /Apache2/htdocs/ "images folder" |