hi all. i want to crop png image.
when i am croping the png image i got "Fatal error: imagepng() [<a href='function.imagepng'>function.imagepng</a>]: gd-png: fatal libpng error: zlib error in C:\wamp\www\taslan\admin\products.php on line 120" error message. at line no 120 shows imagepng($bgim_new,$bgth_file_name,100); this function
rajabhaskar525
1
Junior Poster
Recommended Answers
Jump to Posthi all. i want to crop png image.
when i am croping the png image i got "Fatal error: imagepng() [<a href='function.imagepng'>function.imagepng</a>]: gd-png: fatal libpng error: zlib error in C:\wamp\www\taslan\admin\products.php on line 120" error message. at line no 120 shows imagepng($bgim_new,$bgth_file_name,100); this functionThe 3rd optional parameter to the imagepng() …
Jump to PostHey.
If you are having problems with functions, look them up in the manual.
Jump to Postk. its working . but this function not supporting .bmp image files.
"imagewbmp($bgim_new, $bgth_file_name,9);
" and also i put 100 like this
imagewbmp($bgim_new, $bgth_file_name,100);
still not working
Its very natural if imagepng() doesn't suppport .bmp images.
and the imagewbmp() is not having the same parameters as like …
Jump to Posthello,
i am facing another problem with this. i used values between '0' to '9' then image background color is changing like black. what is alternative for this?imagewbmp() sets the foreground color.
Look for setImageBackgroundColor() function of the Imagick.
All 14 Replies
network18
15
Practically a Master Poster
rajabhaskar525
1
Junior Poster
Atli
182
Posting Pro
network18
15
Practically a Master Poster
rajabhaskar525
1
Junior Poster
network18
15
Practically a Master Poster
rajabhaskar525
1
Junior Poster
rajabhaskar525
1
Junior Poster
Atli
182
Posting Pro
rajabhaskar525
1
Junior Poster
rajabhaskar525
1
Junior Poster
muralibobby2015
17
Posting Pro
network18
15
Practically a Master Poster
rajabhaskar525
1
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.