Skip to content

AphroMad/Crop-Instagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instagram-Crop-Assemble Projet by Pierre Marsaa

Tired of clipping your instagram screenshots by hand ? This script should help you !

Code demonstration here : https://youtu.be/Dyx3d5wCPFM

!! This project is old, the code is not clean and maybe not clear !!

How does it work ?

What does it do ?

  • Trim your screenshots from Instagram
  • Put the screenshot in a image so you can use it as a phone background
  • Put some screenshots in a bigger image so you can use it as a desktop / tablet wallpaper
Step 1 Step 2 Step 3 Step 4
Screenshot Croped image Image with a background (for phone) Group of images (for desktop / tablet)
step 1 step 2 step 3 step 4

How does it do that ?

First thing first, crop the image (Step 1 -> Step 2)

Crop the image is the most complicated part. This part can be divided into several steps.

  • First of all, we check if some template images are found on the image
  • If not, we ask the user to circle the settings and comment button of a post
  • We save those two pictures into the template images folder
  • Then, we use them to crop the image
  • We loop through all the images and ask the user to circle the new icons if they are new ones

Important icons

You can stop there if you just want the cropped images.

Then, put it on a background (Step 2 -> Step 3)

Now that the images are cropped, we would like to put them all in the same format, to make phone wallpapers for example.

  • To do this, we ask the user to enter the dimensions he wants. We change the width of the image to fit the new dimensions (the height too, via a ratio).
  • Then, to avoid having an image on a white background, we calculate the average color of the pixels and put this color in the background.
  • Idea for improvement: Calculate a color gradient up / down like on instagram story.

You can stop there if you just want the cropped images all in the same size.

Finally, combine images (Step 3 -> Step 4)

Just as we prepared the images to use as phone wallpaper, I also coded something to have them as computer wallpaper.

  • At the beginning of this step, the user is asked for dimensions, then, by going through the list of images and their dimensions after changing size, we put the images as we go along in a large image.

  • For each final image, the first line is completed first, then the second. Then we move on to the next image, while removing the possibility of adding the images we have just used in the next wallpapers.

And you have something like that at the end :

step 4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages