Solved

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

Posted on 2015-01-08
2
482 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
ID: 40538782
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
ID: 40539223
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

895 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

11 Experts available now in Live!

Get 1:1 Help Now