imagecreatefrompng

How to create PNG thumbnail if "imagecreatefrompng()" fails ?

I start to create a PNG thumbnail by using this function: $image = imagecreatefrompng("http://imagenic.net/images/pfujz9j5juav1qrex00.png"); However, it says: 'http://imagenic.net/images/pfujz9j5juav1qrex00.png' is not a valid PNG file It works OK with other PNG images, so I guess something is wrong with this specific picture. Wha...

How to load and repeat-x an image with php gd?

Suppose i have an image with width 1px and height 40px. I want to load it with lets say imagecreatefrompng and want to x-repeat it, just like css repeat-x. Is this possible with PHP GD? ...