Skip navigation
criverfilm
Currently Being Moderated

Math help! Evenly distribute Horizontal strips in canvas

Jul 7, 2012 11:59 PM

Hello,

 

I may be making it sound harder than they are. It's hard to explain in words.

 

I need help distributing horizontal strips of images into a 720x480 canvas. The images vary in heights and constant in width= 720 pixels. For example, i get a set of 17 horizontal strips. 10 strips with height of 8 pixels each, and 7 strips with height of 13 pixels each.

 

I need to figure out a math formular that will give me the spacing in between these horizontal strips that would allow me to put them evenly onto a 720x480 canvas.

 

they can not overlap.

 

Thank you and hope it's not too confusing.

 

Cheers

 
Replies
  • Currently Being Moderated
    Jul 8, 2012 12:27 AM   in reply to criverfilm

    You might be able to place one strip at the top of the image and one at the bottom. (having view>show>smart guides on helps)

    Then select all the strip layers, select the move tool and use Distribute top edges.

    Then do a select all and use Align Horizontal Centers.

     

     

    Untitled-2.png

     

     

    Added: Your first message said 17 strips at 420x11, but maybe the above will still work.

     

    Message was edited by: R_Kelly

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 8, 2012 1:07 AM   in reply to criverfilm

    Something like this: (used imageready for the below. has vertical and horizontal spacing options for layers with the move tool align options)

     

    What version of photoshop?

     

     

    space.png

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 8, 2012 2:42 AM   in reply to criverfilm

    You might try this script if you have cs3 or newer:

     

     

    http://morris-photographics.com/photoshop/scripts/distribute-verticall y.html

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 8, 2012 2:51 AM   in reply to criverfilm

    I need to figure out a math formular that will give me the spacing in between these horizontal strips that would allow me to put them evenly onto a 720x480 canvas.

    Do you want them to have equal distances between the strips or between the centers of the strips?

     

    And why don’t you post an example?

     
    |
    Mark as:
  • Noel Carboni
    20,926 posts
    Dec 23, 2006
    Currently Being Moderated
    Jul 8, 2012 6:39 AM   in reply to criverfilm

    criverfilm wrote:

     


    The images vary in heights 

    For example, i get a set of 17 horizontal strips. 10 strips with height of 8 pixels each, and 7 strips with height of 13 pixels each.

     

     

    Are you anticipating an iterative process that places each strip at a vertical position X pixels lower each time, where X is the height of the previously placed image plus a spacing value (and assuming we're working top to bottom)?  The spacing value would just be the full image height minus the sum of all the heights of the strips, divided by one less than the number of strips (there's only one space between two images, two spaces between three, etc.)

     

    In what software / tool / process would you use once you derive such a formula?  Your question seems a bit too vague without knowing something about what's you're going to try to do with the information.

     

    -Noel

     
    |
    Mark as:
  • Noel Carboni
    20,926 posts
    Dec 23, 2006
    Currently Being Moderated
    Jul 8, 2012 9:32 AM   in reply to criverfilm

    You have already been asked what "spread out evenly" means.

     

    Same number of pixels in the space between the strips?  I've already described that, above.

     

    -Noel

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 9, 2012 12:08 AM   in reply to criverfilm

    I wonder if there may be a misunderstanding. Because 60 8px-high Layers could fill an 480px-high image without overlap just fine anyway.

     

    Are you really to look for a distribution pattern for the vertical order of the layers of the various source images?

    If so hat are your parameters?

    Would it need to be somelthing like ABACADAD… or could it be AAABCDADAAA…?

     

    Thank you and hope it's not too confusing.

    It might have been less confusing if you posted an image of an example or mock-up …

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 21, 2012 3:21 AM   in reply to criverfilm

    Another more complicated example, another group has 3 sets.

    Set A has 15 strips (7.5 odds strips and 7.5 even strips; that is like seven 720x8 strips and one 360x8 strip for each odd and even, 360 = 0.5 of 720)

    Set B has 37.5 strips (18.75 odd and 18.75 even, specifically, eighteen 720x8 strips and one 540x8 strip for each odd and even. 540 = 0.75 of 720)

    Set C has 7.5 strips. (3.75 odd; 3.75 even, three 720x8 strips and one 540x8 strip for each odd and even)

    Say what?

    Could you post the file, because I have problems grasping what an 0.5 strip means here.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 22, 2012 4:52 PM   in reply to c.pfaffenbichler

    Sounds like you are in a research or university institution;

    suggest you see someone in the math dept.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points