Skip to content

PHP Image Resizer & Watermarker — Resize Images & Add Text Watermark (GD)

1 downloads 32 views Updated 16 hours ago
PHP Image Resizer & Watermarker — Resize Images & Add Text Watermark (GD)
Price
Free
No cost
Downloads
1
Category
PHP Scripts
Last update
Nov 22, 2026
License
MIT / Free use
Reviewed by our team before publishing

About this code

Resize any photo in seconds — no Photoshop, no sign-up

Upload a photo, pick the width you need, and download a perfectly resized copy — with your own text watermark stamped on it. Built in plain PHP with the GD library: no database, no framework, no monthly fee. Upload it to any PHP host and it just works.

What it does

Blog images, WhatsApp product photos, Instagram posts, website thumbnails — every platform wants a different size. This script resizes any JPG, PNG, WebP or GIF to the exact width you type, keeps the aspect ratio so nothing ever stretches, and optionally adds a semi-transparent text watermark so your photos always carry your brand.

Features

  • Resize to any width from 100 to 4000 px — height adjusts automatically, aspect ratio always preserved
  • Text watermark with 5 positions (bottom-right, bottom-left, top-right, top-left, centre) — semi-transparent with a shadow, readable on any photo
  • Convert output format — keep the original, or convert to JPG, PNG or WebP
  • Before / after stats on the result page — original vs resized dimensions and file size
  • Safe by design — MIME verified with getimagesize(), 5 MB upload limit, random output filenames, PHP execution blocked in the uploads folder
  • Zero setup — no database, no framework, no Composer; upload the folder and open index.php

How it works

Choose an image → enter the new width (800 px for a blog, 1080 px for Instagram) → type your watermark text (optional) → pick the position and format → click Resize & Watermark → download. The watermark size scales automatically with the image width.

What's inside

index.php (the complete app — form, resize and watermark logic), style.css (clean mobile-friendly design), uploads/.htaccess (blocks PHP execution in the uploads folder), README.txt (setup + usage guide). Requires PHP 7.4+ with the GD extension enabled.

Need a Custom Website or Mobile App?

Downloading free code is just the start. Yadu Tech builds complete websites and mobile apps for businesses — design, development, deployment, all done for you.

👉 Chat on WhatsApp

Features & includes

Full source code
Easy setup
Clean, modular code
Responsive design

You might also like

More in PHP Scripts
QR Code Generator — Free PHP Script for Website, WiFi, UPI & Contact QR Codes
Free
PHP Scripts • 5d ago

QR Code Generator — Free PHP Script for Website, WiFi, UPI & Contact QR Codes

QR Code Generator — Free PHP Script Generate QR codes for your website, WiFi password, UPI payments, contact card, email or phone — directly...

3 65
Free
EduClass Pro — Coaching Institute & Student Management System (PHP + SQLite)
Premium
PHP Scripts • 6d ago

EduClass Pro — Coaching Institute & Student Management System (PHP + SQLite)

🎓 EduClass Pro — Coaching Institute & Student Management System (PHP + SQLite) A complete, ready-to-deploy management system for coaching i...

0 85
₹299
FilePilot PHP — Simple File Manager with Upload, Folders, Rename & Delete (PHP, No Database)
Free
PHP Scripts • 1w ago

FilePilot PHP — Simple File Manager with Upload, Folders, Rename & Delete (PHP, No Database)

FilePilot PHP — Simple File Manager with Upload, Folders, Rename & Delete (PHP, No Database) Your own private file manager in one small PHP...

2 101
Free
PHP Image Resizer & Watermarker — Resize Images & Add Text Watermark (GD)
Free
Download