undefined
undefined

Reputation: 5328

What methods could I use to dynamically apply a sepia tone to an image in to a web page using PHP?

I have a webpage that loads thumbnails of images and I want to show old images with a sepia tone. The thumb will always be the same dimensions so could I just make a transparent png file and show it over the image? Should I use something like imagemagick or is this overkill?

Any suggestions? Cheers

Upvotes: 1

Views: 670

Answers (2)

Wikeno
Wikeno

Reputation: 419

You can't make a sepia image with transparency, you can only darken it or shift the colors a bit, but it wouldn't make a real sepia. But it is a simpler and lighter solution.

Upvotes: 0

Mike
Mike

Reputation: 21659

If you have access to the ImageMagick library, you could try Imagick::sepiaToneImage.

See:

http://eclecticdjs.com/mike/tutorials/php/imagemagick/examples_03/sepia.php

Upvotes: 4

Related Questions