8 Replies Latest reply on Mar 29, 2009 7:47 PM by fazstp

    Maximum sized image using imaging lingo

    bruce34567
      when assigning an image to a cast member using imaging lingo i am getting an error on images larger than 4300 X 4300 square.

      I can generate images 6000 X 2000 for example but generating images using as many pixels as above causes an error.

      Error
      member("newguy").image = newimage
      -2147219502

      Any ideas?

        • 1. Re: Maximum sized image using imaging lingo
          Level 7
          I'm guessing you're running into a numeric overflow of some sort or it could
          be memory. You're talking about 592mb here if I did my calculations
          correctly. How much RAM do you have? In any case you should check the
          value of "the freeBytes" and other memory management values to get a better
          idea if memory is your issue.



          --
          Craig S. Wollman

          Word of Mouth Productions
          159-00 Riverside Drive West
          New York, New York 10032
          (212) 928-9581
          "bruce34567" <webforumsuser@macromedia.com> wrote in message
          news:gqap5q$a1h$1@forums.macromedia.com...
          > when assigning an image to a cast member using imaging lingo i am getting
          > an
          > error on images larger than 4300 X 4300 square.
          >
          > I can generate images 6000 X 2000 for example but generating images using
          > as
          > many pixels as above causes an error.
          >
          > Error
          > member("newguy").image = newimage
          > -2147219502
          >
          > Any ideas?
          >
          >
          >


          • 2. Re: Maximum sized image using imaging lingo
            Level 7
            bruce34567 wrote:
            > when assigning an image to a cast member using imaging lingo i am
            > getting an error on images larger than 4300 X 4300 square.
            >
            > I can generate images 6000 X 2000 for example but generating images
            > using as many pixels as above causes an error.
            >
            > Error
            > member("newguy").image = newimage
            > -2147219502
            >
            > Any ideas?

            As far as I can tell, it's an out-of-memory condition.

            page=image(pageWidth, pageHeight, 24)
            if voidP(page) then
            -- Not enough memory
            end if

            Well, there may be enough RAM, but there seems to be some sort of limit.

            Andrew


            • 3. Re: Maximum sized image using imaging lingo
              Level 7
              IIRC there is a limit at around 4096 pixels (a legacy relating to the
              Mac PICT format?), but I don't remember whether this applies to both
              dimensions or is a pixel count limitation (ie. 4096 x 4096 = 16777216
              being an upper limit for the number of pixels of an image)
              • 4. Re: Maximum sized image using imaging lingo
                fazstp Level 2
                Quick test on my iMac I got that error applying an image 4096x4096 to a member but not for 4095x4095.

                • 5. Re: Maximum sized image using imaging lingo
                  alchemist3
                  I faced this issue recently. The problem (on windows at least) is not with the image object, but with setting the .image property of a bitmap member.
                  put image(16000,8000,24)
                  -- <image:219a38>
                  The image size limit for the image object seems to be ram:
                  put image(32000,8000,24)
                  -- <Void>
                  put image(32000,8000,8)
                  -- <image:3e03574>
                  To workaround this issue, since I didn't need to set the image at runtime, I created the image using imaging lingo, exported it as bmp (image > file, using a custom xtra) and then imported the file as a bitmap member.

                  So, though you can have bitmaps above 4095 x 4095, you can't generate them at runtime.
                  • 6. Re: Maximum sized image using imaging lingo
                    bruce34567 Level 1
                    Ok from what i gather, setting an image to a cast member that is larger than approx 16700000 (4095x4095) pixels is not possible at runtime, problem is i am trying to write an application that works with digital camera's and most of the camera's coming out or abpout to come out are capable of very high resolutions.

                    Adobe please try to hotfix this issue as soon as possible as building an imaging application that cannot manipulate standard digital camera images is not good and has put my project on complete hold.
                    • 7. Re: Maximum sized image using imaging lingo
                      Chunick Level 3
                      sorry, but your pleas to Adobe in these forums will certainly go unheeded. If you require a fix then I suggest trying to contact them by other, more direct means.
                      • 8. Re: Maximum sized image using imaging lingo
                        fazstp Level 2
                        If you are working with digital images can you just link to them?