Zubrag.com
November 15, 2019, 10:34:28 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Strange problem  (Read 9637 times)
woss
Newbie
*
Posts: 2


« on: February 02, 2008, 10:41:52 AM »

Hello,
I've read following topics
http://www.zubrag.com/forum/index.php/topic,91.0.html
http://www.zubrag.com/forum/index.php/topic,33.0.html

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
Code:
http://localhost/subir/snap/webthumb.php
  for accessing webthumb.
When I want to create thumb of my root folder I'll call this URL
Code:
http://localhost/subir/snap/webthumb.php?url=http://localhost
the output is text
Code:
http://localhost/subir/snap/webthumb.php?url=http://localhost
,.
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.
Code:
�PNG

���
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 Huh Huh I get then a small  image of a website.

Can anyone help pls Huh Smiley

Logged
woss
Newbie
*
Posts: 2


« Reply #1 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)  Smiley Smiley.
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?
Logged
tallercreativo
Newbie
*
Posts: 2


« Reply #2 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
Logged
tallercreativo
Newbie
*
Posts: 2


« Reply #3 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC