HighDots Forums  

Blitting an image, to another

Javascript JavaScript language (comp.lang.javascript)


Discuss Blitting an image, to another in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Arnaud Diederen
 
Posts: n/a

Default Re: Blitting an image, to another - 01-02-2008 , 08:48 AM






Thomas 'PointedEars' Lahn <PointedEars (AT) web (DOT) de> writes:

Quote:
[...] That would be quite a good solution but, basically, I cannot fetch
more than 1 image (I know it sounds weird but, basically, retrieving one
of these images from the server triggers rather heavy computing, and I
cannot afford that).

So, that's not an option, alas

Would it be possible to compute the high-res image only once and then
serve only the best scaled variant of it on the fly with e.g. the use
of ImageMagick or GD Lib? If not, SVG appears to be more fitting.

Unfortunately not, as the data that composes the image is variable,
and potentially changes quite often; that would require the re-scaling
process to be run over and over again, potentially wasting a lot of
CPU power on the server.

Best,
Arnaud



Reply With Quote
  #12  
Old   
Arnaud Diederen
 
Posts: n/a

Default Re: Blitting an image, to another - 01-03-2008 , 04:28 AM






ad (AT) remove (DOT) this.and.keep.w....ionicsoft.com (Arnaud Diederen (aundro)) writes:

Quote:
Thomas 'PointedEars' Lahn <PointedEars (AT) web (DOT) de> writes:

Would it be possible to compute the high-res image only once and then
serve only the best scaled variant of it on the fly with e.g. the use
of ImageMagick or GD Lib? If not, SVG appears to be more fitting.


Unfortunately not, as the data that composes the image is variable,
and potentially changes quite often; that would require the re-scaling
process to be run over and over again, potentially wasting a lot of
CPU power on the server.

Best,
Arnaud

Thomas,

just to let you know: I managed to get the results I wanted, using the
"matrix" filter, which will accept to resize the image (even by very
high factors), and not eat up all the memory to do so.

<URL:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2619310&SiteID=1>

Thanks for your suggestions,

A.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.