What methods could I use to dynamically apply a sepia tone to an image in to a web page using PHP?
I have a we开发者_StackOverflow社区bpage 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
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
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.
精彩评论