Discussion:
Maximum sized image using imaging lingo
(too old to reply)
bruce34567
2009-03-24 14:02:34 UTC
Permalink
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?
WOMP
2009-03-24 14:36:42 UTC
Permalink
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
Post by 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?
Andrew Morton
2009-03-24 14:39:30 UTC
Permalink
Post by 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?
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
Sean Wilson
2009-03-24 19:24:44 UTC
Permalink
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)
fazstp
2009-03-24 22:14:50 UTC
Permalink
Quick test on my iMac I got that error applying an image 4096x4096 to a member but not for 4095x4095.
alchemist3
2009-03-26 18:11:35 UTC
Permalink
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.
bruce34567
2009-03-29 11:31:51 UTC
Permalink
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.:frown;
Chunick
2009-03-29 14:23:40 UTC
Permalink
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.
fazstp
2009-03-30 02:47:23 UTC
Permalink
If you are working with digital images can you just link to them?
Loading...