Solved

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

Posted on 2015-01-08
2
517 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 33

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 43

Expert Comment

by:Rob
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

679 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