Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 564427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:45:55+00:00 2026-05-13T12:45:55+00:00

I need to create a silhouette of a PNG with Javascript/CSS. Is this possible?

  • 0

I need to create a silhouette of a PNG with Javascript/CSS. Is this possible?

I tried the following:
Stack the PNG with lowered opacity multiple times with absolute positioning and z-index.
This does not work.

Unfortunately I can’t use PHP or something else then Javascript and CSS.

I got some ideas with overlays and such but I can’t figure out how to do it. Any tips?

update: This only needs to work in webkit browsers, so you can bring your webkit trickbox! 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:45:55+00:00Added an answer on May 13, 2026 at 12:45 pm

    It’s not possible in plain HTML/CSS.

    It would be possible in embedded SVG using a filter such as feColorMatrix to set all channels to one colour except the opacity.

    It would be possible in a <canvas> using a composite operation, such as first drawing the image, then drawing a single colour over the top with source-out mode.

    It might be possible in IE using a MaskFilter, using the MaskFilter to generate a masking colour (eg. white) laid over a fixed colour (eg. black). However I think you’ll lose any variable-opacity smooth edges.

    It’s going to be a lot of browser-sniffing and annoyance. I’d try to avoid it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create table that all ListViewItem of this table will be build
i found XMPP on google (i need create a application IM look like Yahoo
I have this problem. I create two instaces of my classes in main window.
Need to Create a Registry Key using bat file.Can I create Reg Key using
I need to create a php script . The idea is very simple: When
I need to create mark clicking in the map, thanks :) google.maps.event.addListener(map, 'click', function()
I would like to heard what is suitabale solution for this situation. I use
In my Qt project i have enum: enum Field {EMPTY=0, WHITE=1, BLACK=2}; And array
I am using ASP.NET MVC framework and accessing DB records with Entities. I am
Instead of using django's auth module I've used my own and already regret it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.