Zubrag.com :: Forum

zubrag.com => Website Thumbnail Generator => Topic started by: woss on February 02, 2008, 10:41:52 AM

Title: Strange problem
Post by: woss on February 02, 2008, 10:41:52 AM
I've read following topics

and I didn't found anything to help me understand where is problem with my copy of a script.
So, let's begin:
I'm running it on localhost (php5, XP proffessional).
folder for my thumbs is X:/www/htdocs/subdir/snap/thumb/
so my URL is
  for accessing webthumb.
When I want to create thumb of my root folder I'll call this URL
the output is text
But when I look into source cod i get more error, the same error that i get if I want to call this script with all params using XHR.

IHDR�����������5h<br />
<b>Warning</b>:  imagepng() [<a href='function.imagepng'>function.imagepng</a>]: gd-png:  fatal libpng error: zlib error in <b>X:\www\htdocs\subdir\snap\image.class.php</b> on line <b>46</b><br />
<br />
<b>Warning</b>:  imagepng() [<a href='function.imagepng'>function.imagepng</a>]: gd-png error: setjmp returns error condition in <b>X:\www\htdocs\subdirsnap\image.class.php</b> on line <b>46</b><br />

Only once was worked ??? ??? I get then a small  image of a website.

Can anyone help pls ??? :)

Title: Solved Re: Strange problem
Post by: woss on February 02, 2008, 01:52:19 PM
I just solve my problem.
Somehow I don't have installed necessary drivers for generating PNG images. After changing extension form PNG to JPG one step of my problem was solved.

Still, I have problem with output when I try to access webthumb.php via XHR. I get strange strings, probably that is my snapped image(in code)  :) :).
I'm trying to modify your script to work with mysql database, but I didn't get too far.
The idea is that a visitor can enter URL and additional informations like: title, description, keyword(for searching), kategory.
Then all that infos will be stored in a database together with a name of snapped image.

What do you think about that?

Title: Re: Strange problem
Post by: tallercreativo on June 23, 2008, 12:49:06 PM
I had the same problem with imagepng and this is how I fixed it

http://www.webdeveloperwannabe.com/index.php?id=8&show=1&pageno=1&pagetype=PHP (http://www.webdeveloperwannabe.com/index.php?id=8&show=1&pageno=1&pagetype=PHP)

Title: Re: Strange problem
Post by: tallercreativo on December 11, 2008, 05:06:59 PM
Here is an updated link from the previous post because the page has been moved

http://www.coderemix.com/tutorials/imagepng-fatal-libpng-error (http://www.coderemix.com/tutorials/imagepng-fatal-libpng-error)