Toy Posted September 24, 2011 Share Posted September 24, 2011 hi, I'm currently trying to resize and create pictures and .jpg/jpeg & .gif works perfectly but .png just creates an empty 0bit image, why?! $ = imagecreatefrompng(); imagecopyresampled(); imagepng(); I'm doing something like that and it - as said - works great with .jpg and gif but at png it just fucks up. :/ Quote Link to comment https://forums.phpfreaks.com/topic/247796-create-to-png/ Share on other sites More sharing options...
Toy Posted September 24, 2011 Author Share Posted September 24, 2011 Anyone? I've googled for a while but I can't seem to find out why the png image creating is so different from jpg and gif, did a phpinfo and everything is enabled :/ Quote Link to comment https://forums.phpfreaks.com/topic/247796-create-to-png/#findComment-1272475 Share on other sites More sharing options...
jcbones Posted September 24, 2011 Share Posted September 24, 2011 You will have to give the actual code you are working with. Quote Link to comment https://forums.phpfreaks.com/topic/247796-create-to-png/#findComment-1272497 Share on other sites More sharing options...
Toy Posted September 24, 2011 Author Share Posted September 24, 2011 it's ok, I solved it, .png didn't base of same quality meter as .jpg&gif and I had to do it slightly different Quote Link to comment https://forums.phpfreaks.com/topic/247796-create-to-png/#findComment-1272499 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.