Solved

Possible to tint/change color of a PNG image using PHP/ASP/jQuery?

Posted on 2015-01-08
2
469 Views
Last Modified: 2015-01-14
Wondering if its possible to tint a PNG image using script (or component)? If so - how?!
Example -- a white circle on a transparent background - we would want to tint the white circle to a chosen color but retain the background transparency.

Thanks!
0
Comment
Question by:Mark Pike
2 Comments
 
LVL 32

Accepted Solution

by:
Big Monty earned 500 total points
Comment Utility
the easiest way to do this is using server side component, such as ImageMagick

http://www.imagemagick.org/

This will allow you to edit the photo
0
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
Comment Utility
using javascript you can do simple overlays but it doesn't affect the original image.  Not sure that's what you want but it would allow the use to interact by being able to change the color and intensity.

http://jsbin.com/masexu/1/edit?html,css,output
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now