I HOPE YOU ARE ALL FINE)

In my web i`m using image magic or GD library to resize photos when someone upload them to the server.
This makes me create alot of thumbnails for a single photo.

So i`m asking if their is any function in PHP which can resize photo when displaying.
i mean,i will upload the original photo without resize and when displaying it,i will use that function to resize to any size i want.

ANY SUGGESTIONS WILL BE APPRECIATED.

There are several ways of doing it. The most common being using gd although the gd library is a tiny library that handles very few file formats. I would recommend using the imagick library and this can be viewed on the php documentation.

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.