You are browsing as a guest. Sign up (or log in) to start making projects!

Grad Picture Getter For Picking The Right Picture

  • 3 Devlogs
  • 8 Total hours

Software that puts together grad picture so you can see full quality picture and decide if it's good.

Ship #1

Recently just had graduation, and found out that flash photography provides a zoomed in hd picture of the grad picture, which you can select each spot to zoom into. I did some research and found a github project which used the idea to stitch together the pictures, but when I ran it it did not work. So now I decided I will make my own program to stitch the zoomed in pictures together to make one big preview image of the graduation picture so that you can correctly decide what to get.

I started with planning how it would work, such as the double for loop to get the x and y coordinate, which flash photography uses to grab the right zoomed picture via url, and then the idea to download each picture and then use some java method to put them onto a larger image.

What I found difficult was not using new methods I had never seen, but rather understanding how the url worked and how even though you go down one pixel on the y axis it for some reason visually shifts the x axis to the right. So I could not take thousands of pictures and then place them together as they would not align correctly; instead I had to use larger pictures and divided up the picture by 4 x 4.

After the first success with getting the picture stitched together I wanted to try and remove the zoom in box by cropping it out.

So I used subimage method and did some measurements to see where I need to crop. Then I realized that the lines remove image data creating visual issues, and I need to find a way to restore it, so I implemented gaps to be introduced and after finding the correct tweaks for one picture, I tried it on a different one and then those didn't work for that one, so I implemented user settings so that the user can adjust and try to make it work for their picture.

I had ditched having the zoomed in box, but then I realized that trying to restore the data lost by removing the zoom in box may not work at all, so I put an option so that you can have one with the zoom in box, but have no visual issues.

I think by limiting myself to no AI and only use forums like stack overflow, I was able to be more of an experimentor, with most of my time tweaking small things to see if they made a difference, and by doing these I think I gained more experience and understanding with the new methods I learned.

Then I learned how to export ot jar in vscode and then use launch4j's config to set it to cli,jre bundle path, and in the end create a exe.

  • 3 devlogs
  • 8h
Try project → See source code →
Open comments for this post

3h 7m 32s logged

I think finally done.

Here are some screenshots of stages of development and the many different tweaks.

In the beginning I started with just getting the whole image (the one with squares in the middle, but there were also some lines remaining and visual issues.

Then I moved on to make the amount squares used to be 4 x 4 that way more quality could be saved and that looked a lot better.

After that I started to utilize cropping to remove those squares and ran through some issues with measurement so I used a pixel ruler to get accurate cropping.

After a lot of tweaking such by filling in the gap left from cropping the white square, and how many imagese to stitch together in one, I finally was able to get a good product out of the program and while it does look good there are dark lines where the stitches are, but I think that is good as this was not a program to generate full quality pictures from a photo company, but to generate a good full preview image.

0

Loading discussion…

0
7
Open comments for this post

1h 44m 21s logged

Some sites such as flash photography give you a small zoomed in hd image for you to preview, I want to stitich together all those images into one full image, so you can better view the image. If you like those pictures you have to buy from photographer’s website. If you use this project to get picture you are agreed you will delete those result later.

My idea was I can download the images and then stitch them together using java’s imageIO and graphics.

If you decide to keep any images as a result of this program is purely between you and that photographer company. And you agree do not use this program to mass-produce image for other people!

0

Loading discussion…

0
7

Followers

Loading…