Reputation: 5328
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
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
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