I previously imported some small gif
images and used them successfully in
my programme.
Now that I've done the "real" thing I find
that no matter how many times I import
them they simply disappear!
This is after saving the file several times
as well as backups with revAltArchive.
No sign of them anywhere.
Could it be anything related to setting
quality to "Best"?
Hints etc. welcome.
Problem importing images
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Problem importing images
Life is just a bowl of cherries.
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Are the image controls still there and empty, or did they somehow get deleted? A good definition of the problem is the first step to a solution 
Jan Schenkel.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Hi BJB,
Nope, the quality of an image doesn't cause any problems. This feature exists for quite w hile now and it never cause such a problem before.
What happens if you quit Revolution, start it again, create a new stack and import the gif file? Does it disappear?
If the picture doesn't disappear, there must be going on something in your stack. I can imagine several causes of the problem. Perhaps, you think you are importing an image, while you are not, or you are importing an image to a different stack than the one you aim for. This may happen if the stack you are looking at is not toplevelled or cannot be changed. So, you need to check whether the currently active stack really is the one you want to import a picture into.
Do you have any scripts that are triggered when a new object is created?
Best,
Mark
Nope, the quality of an image doesn't cause any problems. This feature exists for quite w hile now and it never cause such a problem before.
What happens if you quit Revolution, start it again, create a new stack and import the gif file? Does it disappear?
If the picture doesn't disappear, there must be going on something in your stack. I can imagine several causes of the problem. Perhaps, you think you are importing an image, while you are not, or you are importing an image to a different stack than the one you aim for. This may happen if the stack you are looking at is not toplevelled or cannot be changed. So, you need to check whether the currently active stack really is the one you want to import a picture into.
Do you have any scripts that are triggered when a new object is created?
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Problem importing images
Thanks for your responses.
After a while away I've turned my
computer on and checked the stack
and the graphics appear as expected.
However when I run the stack the
programme stops with an error
when the graphic is to appear.
Figured out that previously I was
using the "clone" function to make
a copy of the graphic and using that
in the prog.
Now I'm using the graphic itself but
still have the code to delete the cloned
image. However, the delete graphic code
is only triggered by clicking the "Reset"
button which I haven't done.
So a small change to the code should fix
the problem.
Another lesson I mustn't forget - when
you have code which works don't mess
about with it!
After a while away I've turned my
computer on and checked the stack
and the graphics appear as expected.
However when I run the stack the
programme stops with an error
when the graphic is to appear.
Figured out that previously I was
using the "clone" function to make
a copy of the graphic and using that
in the prog.
Now I'm using the graphic itself but
still have the code to delete the cloned
image. However, the delete graphic code
is only triggered by clicking the "Reset"
button which I haven't done.
So a small change to the code should fix
the problem.
Another lesson I mustn't forget - when
you have code which works don't mess
about with it!
Life is just a bowl of cherries.