1

I was working on a graph theory presentation and I have a series of operations on the graphs that I am demonstrating, thus I have very small changes in the graphs, such as 1 node being deleted or various colors changing but the overall structure is exactly the same. The only problem is the images are all different sizes and I don't have the time to go through every image and resize it. Is there a software that can do this?

Example: Graph 1

Graph 2

Graph 3

  • I believe one route would be to trim out all the whitespace and then batch resize them to all be the same width. I'm on mobile, but it seems to me like they may have varying amounts of whitespace on all sides right now. You could do it in like Photoshop or even ImageMagick – Joonas Oct 7 '18 at 21:04
  • 1
    There are two problems. 1. The background canvas is not the same size, and 2. The graphics themselves are not the same size either. It's going to be very hard to automate this, and to be honest ,by the time you have worked out a solution it might be easier to do it manually in software such as Photoshop or GIMP. Obviously I don't know your skill level in image editing so this may be impractical for you. Perhaps consider paying someone to do it for you? – Billy Kerr Oct 8 '18 at 11:18
  • I noticed that the last example image just randomly has bigger balls and text in comparison to the other two. You can't really perfectly align them unless it's in a vector format. Then you could resize all of the ballsies and text around their center point.... but even then it would make more sense to export them out all at the same size from the source. – Joonas Oct 9 '18 at 17:57
3

Adobe Photoshop has a feature called "auto-align layers" that can , as you might guess, automatically align layers.

Below I used this method:

  1. I added your three example images to deliberately mismatched size canvases.
  2. I imported these three images as layers in a new document.
  3. I locked the "reference" layer.
  4. Hit "Edit" > "Auto-Align Layers..."
  5. I accepted the default settings, yo umight have even better results by adjusting them.

Below I varied the opacity of the top two layers, and you can see the alignment is really quite good. This could all of course be saved as an action, and run on a batch of files.

enter image description here

|improve this answer|||||
  • great tip! I didn't know that. – theyve Oct 9 '18 at 13:21
  • 1
    @theyve - I hardly remembered it myself haha, must be ten years since I used it. Solving problems here is a good way to brush up on seldom used functionality :) – mayersdesign Oct 9 '18 at 15:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.