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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:36:58+00:00 2026-06-01T05:36:58+00:00

I want to split two pictures (pic A and pic B – both same

  • 0

I want to split two pictures (pic A and pic B – both same size) to Up and Down Halfs (A-Up,A-Down,B-Up,B-Down), and then create new images: A-up + B-Down and vise versa (meaning: I want to have a new picture that its upper half is in fact the upper of A and the down half is of B). I wrote the next function in python, using PIL module:

import Image  
def SplitFunction(BMP):  
      im = Image.open(BMP)  
      [x,y]=im.size  
      box1=(0,0,x,y/2)  
      box2=(0,y/2+1,x,y)  
      region1 = im.crop(box1)    
      region2 = im.crop(box2)  
      region1.show()  
      region2.show()  
      return [region1,region2]  

path1='c:/movie2frames/BMPs1/stim/1.BMP'  
path2='c:/movie2frames/BMPs1/stim/334.BMP'  

[r1a,r2a]=SplitFunction(path1)  
[r1b,r2b]=SplitFunction(path2)  
#end program 

I don’t know how to paste the new parts. Any help would be much appriciated.

  • 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-01T05:36:59+00:00Added an answer on June 1, 2026 at 5:36 am

    This is actually much easier if you keep the original full-size image and paste a new top half into it.

    box_top = (0, 0, x, y / 2)
    top_part = im1.crop(box_top)
    result = im2.copy()
    result.paste(top_part, box_top)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two images that I want to split each into 3 parts. If
I want to split up the jQuery .js file into two, but I have
I want to split a file containg HTTP response into two files: one containing
i'm amol kadam,I want to know how to split string in two part.My string
I want to split a string into two variables, the first word and the
I want to split the calendar into two-week intervals starting at 2008-May-5 , or
Basically I want to split a square div diagonally in two resulting in two
I have an NSArray, and I want to split it into two equal pieces
I have two strings and I want to split with space and use them
I want to split an iterable into two lists with alternating elements. Here is

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.