loadgraphic

new BookmarkLockedFalling
meerkat
Senior Member
****

meerkat Avatar

Posts: 250

Post by meerkat on Jan 1, 2009 9:20:00 GMT -5

I have a program that does bulk loading of photos.
In XP I load about 1800 photos in about 5 seconds.

In Ubuntu Linux, loading the photos is really slow. I reduced the number of photos to 20. Set the "Runtime timeout limit" to 3 minutes and it times out.

Finally figured out it was the loadgraphic command.
I commented out the loadgraphic command and it loads in a flash.

My question. What am I doing wrong.
How do I speed this up??
The program is exactly the same in both systems.

Thanks for the help.


Happy New Year...

Carl Gundel - admin
Administrator
*****

Carl Gundel - admin Avatar

Posts: 550

Post by Carl Gundel - admin on Jan 1, 2009 11:41:28 GMT -5

Might be a memory management issue. How much memory do you have in the Linux box? Is the machine paging?

That aside, loadgraphic is meant to be useful when you want to perform some drawing operations on an image. Why not just put the graphics in a public folder and serve them up using anchor tags?

-Carl
Last Edit: Jan 1, 2009 11:42:51 GMT -5 by Carl Gundel - admin
meerkat
Senior Member
****

meerkat Avatar

Posts: 250

Post by meerkat on Jan 1, 2009 13:18:24 GMT -5

I think I found part of the problem. For some reason they were trying to load photos that were about 2.5Meg each. Why - I dunno?

Anyway the system is a album system. When you bulk load, it loads the name of the photo into a database.
The only reason I do a loadgraphic is to get the width and height of the photo. Maybe there is another command? This is also stored in the database. I use the ratio of height and width to calculate the width percent when using the "<IMG SRC=" command.

If I could find the shell command for Linux and windows to get the photo width and height I could get rid of the loadgraphic command.

Anyone know the command to do this??

Thanks for the help..