Making a 'warped' polaroid effect

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Laphan

    #1

    Making a 'warped' polaroid effect

    Hi All

    I know this might sound a strange subject post, but I'm doing a photography
    web site and I'd like to make an effect whereby my pictures are a sort of
    slanted, drawing pin to the wall Polaroid for each one. This may sound like
    a quick PSPro or Photoshop job, but the problems are as follows:

    1) A user with no artistic knowledge will be uploading standard rectangle
    pictures to this web site on a regular basis.

    2) I don't want to use Flash for this as I have zero experience with this
    package at the moment.

    My challenge is to get the standard uploaded pics to be read in (via ASP)
    and then an effect (JS/DHTML??) is used to super impose this onto a warped,
    pinned Polaroid background.

    I hope this makes this sense and would really appreciate any help you can
    give.

    Thanks

    Laphan






    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= East/West-Coast Server Farms - Total Privacy via Encryption =---
  • Philip Ronan

    #2
    Re: Making a 'warped' polaroid effect

    Laphan wrote:

    (snip)[color=blue]
    > 1) A user with no artistic knowledge will be uploading standard rectangle
    > pictures to this web site on a regular basis.
    >
    > 2) I don't want to use Flash for this as I have zero experience with this
    > package at the moment.
    >
    > My challenge is to get the standard uploaded pics to be read in (via ASP)
    > and then an effect (JS/DHTML??) is used to super impose this onto a warped,
    > pinned Polaroid background.[/color]

    Rotating these images is not going to be easy. If you decide this is REALLY
    necessary, then I suppose you could try running Photoshop on your server and
    using ASP to interface with it. You might even find commercial server-side
    scripts that will do this sort of thing.

    Javascript is simply not up to the task.

    My advice is forget the warping. Just display the images as they are, and
    wrap them inside four (top, bottom, left & right) pre-prepared images to
    represent the borders of the photo with a simple drop shadow.

    Phil

    --
    Philip Ronan
    phil.ronanzzz@v irgin.net
    (Please remove the "z"s if replying by email)


    Comment

    • VK

      #3
      Re: Making a 'warped' polaroid effect

      Only for Explorer users: you may try one of static filters:
      http://msdn.microsoft.com/library/de...thor/filter/re
      ference/reference.asp


      Comment

      • Andrew Thompson

        #4
        Re: Making a 'warped' polaroid effect

        On Sat, 16 Oct 2004 15:32:13 +0200, VK wrote:
        [color=blue]
        > http://msdn.microsoft.com/library/de...thor/filter/re
        > ference/reference.asp[/color]

        A tip on those pesky long URL's.
        Wrap 'em in '<' '>' and they don't break, e.g.,
        <http://msdn.microsoft. com/library/default.asp?url =/workshop/author/filter/reference/reference.asp>

        You have to use different methods for some news-clients,
        but that should work for OE.

        --
        Andrew Thompson
        http://www.PhySci.org/codes/ Web & IT Help
        http://www.PhySci.org/ Open-source software suite
        http://www.1point1C.org/ Science & Technology
        http://www.LensEscapes.com/ Images that escape the mundane

        Comment

        • J. J. Cale

          #5
          Re: Making a 'warped' polaroid effect

          and if you decide to do so, use the matrix filter. With a little
          tweaking(and a little CSS for frame borders) you can get a nice skew that
          will suit your idea if I understood it properly. I once posted the exact
          code. If you can't find my post on Google, reply and I'll try to find it for
          you. To date AIUI, filters have not been integrated into other browsers
          something I would like to see. I write little browser apps that do several
          photo processing routines using MS filters for sepia rotation skew(matrix)
          glow dropShadow shadow ripple opacity and 3d. A whole world of javascript
          driven graphics is kind of in limbo. As distasteful as I find MS, they got
          this one right.
          Hope this helps.
          Jimbo
          "VK" <schools_ring@y ahoo.com> wrote in message
          news:417123f3$0 $28244$9b622d9e @news.freenet.d e...[color=blue]
          > Only for Explorer users: you may try one of static filters:
          >[/color]
          http://msdn.microsoft.com/library/de...thor/filter/re[color=blue]
          > ference/reference.asp
          >
          >[/color]


          Comment

          • Laphan

            #6
            Re: Making a 'warped' polaroid effect

            Hiya Jimbo

            Thanks for coming back to me.

            Having trouble finding the code via Google, etc, so if you could post the
            code that you are taking about it would be very much appreciated.

            Rgds

            Laphan

            J. J. Cale <photom@netvisi on.net.il> wrote in message
            news:41720767$1 @news.012.net.i l...
            and if you decide to do so, use the matrix filter. With a little
            tweaking(and a little CSS for frame borders) you can get a nice skew that
            will suit your idea if I understood it properly. I once posted the exact
            code. If you can't find my post on Google, reply and I'll try to find it for
            you. To date AIUI, filters have not been integrated into other browsers
            something I would like to see. I write little browser apps that do several
            photo processing routines using MS filters for sepia rotation skew(matrix)
            glow dropShadow shadow ripple opacity and 3d. A whole world of javascript
            driven graphics is kind of in limbo. As distasteful as I find MS, they got
            this one right.
            Hope this helps.
            Jimbo
            "VK" <schools_ring@y ahoo.com> wrote in message
            news:417123f3$0 $28244$9b622d9e @news.freenet.d e...[color=blue]
            > Only for Explorer users: you may try one of static filters:
            >[/color]
            http://msdn.microsoft.com/library/de...thor/filter/re[color=blue]
            > ference/reference.asp
            >
            >[/color]






            ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
            http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
            ---= East/West-Coast Server Farms - Total Privacy via Encryption =---

            Comment

            • J. J. Cale

              #7
              Re: Making a 'warped' polaroid effect

              Hi Laphan
              This might be double posted. I replied but the reply never showed up on
              my newsreader so I'm posting again with an afterthought.He re is the post and
              I hope it helps. I'll keep an eye on this thread and your name in case you
              need more help.
              Jimbo
              I am not promoting Microsloth or any of it's products but...AFAIK IE5.5
              alows images and text to be rotated skewed and resized through the filter
              and style objects

              <script type = "text/javascript">
              // for resizing where var is any percentage. (no fractions or decimals for
              safety)
              currEl.style.zo om=var+'%';
              // for rotation
              var deg2radians = Math.PI * 2 / 360;
              currEl.style.fi lter = "progid:DXImage Transform.Micro soft.Matrix(siz ingMethod
              = 'auto expand')";
              // I use onmousemove to trap event.clientX/Y to produce 'rotation' values
              so the user can rotate or skew with a mouse drag
              document.onmous eover = makeRotationPar am;
              var lastX = 0, lastY = 0;
              function makeRotationPar am() {
              var x = event.clientX, y = event.clientY;
              // compute differences in current and last mouse position according to your
              needs and put it in place of the '?' in the following line
              var aValue = ?;
              lastX = x;
              lastY = y;
              rotateObj(aValu e);
              }
              function rotateObj(rotat ion) {
              if (rotation >= 360) rotation = 0;
              var rad = rotation * deg2radians ;
              var costheta = Math.cos(rad);
              var sintheta = Math.sin(rad);
              currEl.filters. item(0).M11 = costheta;
              currEl.filters. item(0).M12 = -sintheta;
              currEl.filters. item(0).M21 = sintheta;
              currEl.filters. item(0).M22 = costheta;
              }
              </script>
              If you fiddle with the filter params (M11...) and/or the rad/sin/cos values
              and/or the signs(+,-) you'll find the skew and more. I can't remember or
              find the source of this code. Sorry! The above is a variation of a post in
              this group some time ago.
              <afterthought >
              I think I mentioned that you can use the CSS borders prop/att to put frames
              around your photos that will skew together with the photo. The example uses
              'double' but there are others. (solid, groove, inset, outset, ridge, double,
              IE6-> dotted, dashed).
              examples
              declare it inline with style obj is easiest but might not work in all MS
              agents
              <img src="a.jpg" style="border:3 px blue double;" ...etc>

              give the image an id and add it to your style sheet
              <img ID="my.jpg" src="a.jpg" ...etc>
              <style type="text/css">
              #myJpg {border:3px blue double;}
              </style>

              script it (notice that this example uses the name attribute and the above
              uses the id)
              <img NAME="my.jpg" src="a.jpg" ...etc>
              <script type="text/javascript">
              // with name of img
              document.images['myJpg'].style.border = "3px blue double" ; // safer
              // with id of img *some versions of IE might want the reference from the
              document.all collection or document.getEel ementById()
              myJpg .style.border = "3px blue double" ;
              </script>
              Finally watch out for word wrap on my comments if you copy any of this
              directly into your page. I'll also check my archive for an example if you
              don't get the result you want.
              Jimbo



              Comment

              Working...