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

  • Home
  • SEARCH
  • 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 8928175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:22:34+00:00 2026-06-15T08:22:34+00:00

I have a background image: , on which i fuse a circle(or eclipse): so

  • 0

I have a background image:
enter image description here,

on which i fuse a circle(or eclipse):
enter image description here

so that the area equal to circle becomes transparent on the background image just like this:
enter image description here.

I have used php and image magick to achieve this

Now, I have to insert an image into the hole in such a way that:

  1. Image is rendered above the background, so only image area equal
    to photo hole is visible.
  2. When I drag the image in photo hole, the image goes in layer behind background and when released again the image is re-rendered as step 1.
  3. I also need to crop the image rendered in step 1.

How this can be achieved in php using image magick? Any pointers or help will very useful.

To transfer image below the background on layer, can this be done using z-index?

  • 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-15T08:22:35+00:00Added an answer on June 15, 2026 at 8:22 am

    In order to achieve the above, I took this appraoch:

    1. I place a image in a div (exactly surrounding the circle) which is behind the background image. The div has overflow hidden, so I can contain image.

    2. In order to drag image I transfer mouse down event on background image to the below div. This can be done using jQuery trigger.

    3. Now to crop the image I calculate the x,y offset of images and crop height and width accordingly and send data to server to crop it.

    Hope this helps someone else.

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

Sidebar

Related Questions

I have a background on a page body that is an image which I
I have a site that uses a large centered background image, which naturally loads
I have a panel with transparent background which i use to draw an image.
I have a background image which has a hole into, so that we are
I have a background image which is 1280 X 720 that fits my S3
The app I am developing have a background image which I would like to
I have a background UI Image which is shown whenever i touch a UIButton:
I have a .gif file which i wish to use as the background image
Hi I have created an h3 which is centered and uses a background-image and
I have a <div> which contains a background image, the <div> sits within a

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.