Polaroid Challenge

Learn / Forums / General InDesign Topics / Polaroid Challenge

Viewing 12 reply threads
  • Author
    Posts
    • #53666
      Cian De Locke
      Participant

      Hi Forum, (great to see you up and running)

      Your mission should you decide to accept it…

      I want to create an Object Style to generate a “polaroid” white border and drop shadow on a photograph.

      The problem: The white polaroid border has no defining edge! When placed on a coloured background its OKish.

      Originally I thought this would be sooo easy. I have an answer. But not sure if it will work at any size…

      I would like to hear from others on how they might achieve the effect.

      Imagine a contact sheet of 10 placed photos and by applying an object style all 10 photos have a white frame (10pt) , defining edge (thin border, .5pt) and drop shadow.

      All the Best,

      Bustop

    • #53669
      Eugene Tyson
      Member

      I'd make a text frame, with an inset of about 3 – 5mm

      I'd anchor the an Image Frame inside the Text Frame and center it.

      Insert the image into the Image frame.

      Colour the text frame white, give it a thin stroke. Add a drop shadow.

      When you're done, you can resize the text frame as to suit the shape of the image.

    • #53672
      David Blatner
      Keymaster

      Mike Rankin is the king of the eye candy, so perhaps he'll chime in here. But perhaps there's something you can do with a custom stroke style, such as the ones on this page?

    • #53687
      Mike Rankin
      Keymaster

      I like hank_scorpio's solution. Simple. Scalable. Very nice.

      If you want something you can apply with an object style, you could try a thick stroke (as thick as you want the bottom of the Polaroid to be) and then use a Directional Feather with 100% choke to trim the top and sides. This, plus the drop shadow can all be applied with an Object Style. If you need to scale it, go to your General preferences and choose When Scaling: Adjust Scaling Percentage. This way the choked directional feather will scale along with the stroke and photo. To make sure the white border doesn't get totally lost on one side, play with the drop shadow settings or make the stroke a very light gray (4%), or better yet, both. Hmm, maybe I should write this up with some pix…

    • #53690
      Eelco
      Participant

      You could try a white fill.

      A white stroke (i've it set to 10pt)

      At the frame fitting options crop the bottom amount at you're like and get the reference point to the middle and select “fit frame proportionally”.

      The only disadvantage is that the image get scaled ugly at high amounts of cropping.

    • #53695
      Eugene Tyson
      Member

      Mike Rankin said:

      I like hank_scorpio's solution. Simple. Scalable. Very nice.


      Why, thank you Eye Candy Guru

      Cool
      Cool
    • #53699
      Cian De Locke
      Participant

      Hi Forum,

      I like hank_scorpio’s solution,
      I like Mike Rankin’s solution,
      I like David Blatner’s solution,
      I like Eelco’s solution.

      But David your solution is the most elegant. The Stroke Styles for me is the solution. And Object Style able.
      When I said I did not know if it will work at any size: I will try the “When Scaling: Adjust Scaling Percentage” area!

      All the Best
      Bustop

      p.s. I tried to paste a visual of my solution but doh! know how.

      btw: David, I love the podcasts. Hi Anne-Marie.

    • #53701
      Adi Ravid
      Participant

      As it's a very challenging task to achieve using an object style (not to say impossible), here's a link to a small script called PolaroidMaker I just wrote that does it.

    • #53706
      Cian De Locke
      Participant

      Hi Adi Ravid,

      Thank you for taking the trouble to repond.
      FYI. Here is the feed back I get when running the script.
      I am working on a PC/Windows XP/ InDesign CS3.

      I am new to InDesign and not familiar with Scripts.

      —————————
      Adobe InDesign
      —————————

      JavaScript Error!

      Error Number: 30477
      Error String: Invalid parameter.
      Line: 47
      Source: myDocument.groups.add([myImage, myPicFrame]);
      —————————

      All the Best
      Bustop

    • #53709
      Eelco
      Participant

      Wow Adi. Works very well, the only thing is that the images are getting smaller (100%?) when you apply the effect to it.

    • #53713
      Adi Ravid
      Participant

      Bustop said:

      FYI. Here is the feed back I get when running the script.
      I am working on a PC/Windows XP/ InDesign CS3.

      I am new to InDesign and not familiar with Scripts.

      I tested the script on CS3 under Win XP and got no error.

      Did you put the script into InDesign's Scripts folder?

      Eelco said:

      only thing is that the images are getting smaller (100%?) when you apply the effect to it

      Well, the basic thing I'm doing is putting the image into a polaroid like structure, so I set the image frame to the actual size of a polaroid picture, then fit the image to fill the frame proportionally and center.

      The resulting group can then be scaled by the user to whatever size he needs (while holding the Command or Ctrl + Shift keys).

      Only problem is that the effects don't scale.


    • #53726

      Hi, Adi!
      Thank you for the script. I came accross one minor glitch: in case someone set different measurement units to vertical and horizontal rulers I suggest you would better add one line of code right after line 3:

      myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.MILLIMETERS;

      if you don't the end result is not predictable.

      Off topic:

      One question to the admin (David?): how would I tag code in this forum to look like code? Say format one string of text to “Courier”?
      I know that there is the HTML-button, where I can edit, but I could not figure out what kind of tags will work. Something like

      Here comes my code

      is ruled out. Or, I cannot see it in the preview. Let's try it. The line of code is tagged with

      .

      Cheers,
      Uwe

      //Edit: oh,

      worked as expected.

    • #53727
      Adi Ravid
      Participant

      Thanks Uwe,

      Here's the download link to the new script (which is actually the same as the previous one).

Viewing 12 reply threads
  • You must be logged in to reply to this topic.
>