dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Freeing image data from memory after changing src

  1. #1
    Join Date
    Oct 2007
    Location
    Vienna, Austria
    Posts
    397

    Freeing image data from memory after changing src

    Hello everybody.

    I made a script for viewing photos on my webpage. There's a list of thumbnails and one main picture. Upon selecting a thumbnail, the src attribute of the main image updates. The problem is that the image data don't get off memory when a new image is requested, so when the pictures are big, it is very easy to go out of memory. Is there perhaps a way to cause the no-longer-displayed images to be freed from memory?
    The page is here: http://www.sixtease.net/photos/

    This is my first post here, thank you for having me. :-)

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    That would require accessing the cache which is not possible with JavaScript due to security restrictions.
    I would suggest reducing the kb size. A reduction to 20% of original is possible without noticeable deterioration.
    Last edited by Fang; 10-29-2007 at 06:38 AM.
    At least 98% of internet users' DNA is identical to that of chimpanzees

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles