# Watermarking with GD

**URL:** <https://forum.kirupa.com/t/watermarking-with-gd/264860>\
**Category:** programming\
**Created:** [July 1, 2008, 10:35am UTC](https://forum.kirupa.com/t/watermarking-with-gd/264860 "2008-07-01T10:35:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iNeed\_Help](https://avatars.discourse-cdn.com/v4/letter/i/49beb7/32.png) [@iNeed\_Help](https://forum.kirupa.com/u/iNeed_Help)\
**Post date:** [July 1, 2008, 10:35am UTC](https://forum.kirupa.com/t/watermarking-with-gd/264860/1 "2008-07-01T10:35:56Z")

</div>

I’m trying to manipulate a script I found for watermarking using the GD library.  
I want to make so that I can set the width of the image and then have the script calculate the appropiate height for that width. With the little modifications i made, the watermark is correctly positioned but the background image does not scale down. I don’t know how else to explain it, have a look at my code and you might get a better idea.

Here’s the link:  
[http://pastebin.com/m690b5f86](http://pastebin.com/m690b5f86)

Thanks

---

<div class="post-metadata">

**Author:** ![iNeed\_Help](https://avatars.discourse-cdn.com/v4/letter/i/49beb7/32.png) [@iNeed\_Help](https://forum.kirupa.com/u/iNeed_Help)\
**Post date:** [July 3, 2008, 9:44am UTC](https://forum.kirupa.com/t/watermarking-with-gd/264860/2 "2008-07-03T09:44:45Z")

</div>

_still praying for an answer_
