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 7809135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:19:56+00:00 2026-06-02T03:19:56+00:00

I need to make a redactor where the user can put one image over

  • 0

I need to make a redactor where the user can put one image over another is that possible?

Fore example if we have a T-shirt of white color, and we have another image of flowers and when we drag a flowers image and drop it on the T-shirt, then the T-shirt have a drawed flowers of the previous image, and the result is a T-shirt with the picture of flowers, what can i use to do that faster?, i think i will need Javascript(drag and drop) to drag the image that i want it to be in the other image, in other words i want to combine 2 images, but the second get cropped when it droped on the first image, i hope you understand what i am trying to say

  • 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-06-02T03:19:57+00:00Added an answer on June 2, 2026 at 3:19 am

    You could use this simple HTML:

    <div style="background-color: white;position:absolute;">
      <img id="flowers" style="position:absolute;" src="empty.png"> // Empty image
      <img style="position:absolute;" src="mask1.png"> // A transparent T-shirt pattern surrounded with non-transparent background color (in this case white)
      <img style="position:absolute;" src="mask2.png"> // 20-50% transparent pattern for shadows in T-shirt
    </div>
    

    The masking images can also be combined by using layers when creating the image. The trick here is that only the T-shirt-pattern within the image is transparent, and shadows which make the T-shirt “alive” are only partly transparent.

    And when you’ll finish your drag&drop:

    document.getElementById('flowers').src='your_path_to_flowers.png';
    

    This is rather an old-fashion way, but it works in older browsers too. I think there are utilites in HTML5/CSS3, with which you can crop images with an other.

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

Sidebar

Related Questions

I need to make sure that user can run only one instance of my
I need make input field that contain phone numbers. Users can enter 1-10 numbers.
I have a crystal report file I need make a tiny edit in. It
I need to make a poker game for school in c++. I have made
I need to make an ArrayList of ArrayLists thread safe. I also cannot have
I have a class that is a manager sort of class. One of it's
I have a high traffic website and I need make sure my site is
I have an issue where I have an interface that has parts that make
I need to make a lot of operations using BigDecimal, and I found having
I need to make a WebCast presentation soon and need to do some whiteboarding

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.