Jump to content

[SOLVED] Resize image and save it.


Distant_storm

Recommended Posts

ok as many of you may have noticed im working with Gd a fair bit. I want to resize my image before I add watermark to it.

 

I have looked up some examples but they seem to create black bars when the image is not fitting the desired fit.

 

I want it to just resize the image to or below a specific height and widht

 

then save that image, has anyone got a very simple way to do it. I can calculate the image size and that just the function for resizing the image is what i need help with

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.