NO INTERSTING
  ----- Original Message ----- 
  From: Walter Prins 
  To: [email protected] 
  Sent: Wednesday, March 16, 2005 5:11 PM
  Subject: Re: [list] [delphi-en] Compressing a graphic before inserting it to 
an Access db



  ----- Original Message ----- >   I have an application that stores Jpeg's to 
  an
  > Access db. If the jpeg is fairly small, then the db
  > size does not grow very fast. However, I have started
  > using a 3.2 Mega pixel camera. Even after cropping the
  > image, the file is still pretty big.
  >
  >   I am using imgImage.Picture.Graphic.SaveToStream to
  > save to a TMemoryStream and then using
  > ADOCommand.Parameters.ParamByName('Image').LoadFromStream(ms,
  > ftBlob) to save it to the db.
  >
  >   Is there any way I can compress the data, either in
  > the jpeg or in the memory stream before it is saved to
  > the db?

  Just some observations:  A JPeg picture is already compressed (as you no 
  doubt already know) using lossy compression mechanisms no less.  This 
  however means that applying another compression routine (especially a 
  conventional lossless one) is not likely to yield any significant further 
  size reduction.  The only way to make JPeg's smaller IMO is to reduce the 
  quality factor to a reasonable level without of course reducing it too much, 
  when creating them (or find a better image format. ;-)   ) This can 
  sometimes decrease size requirements dramatically without significantly 
  affecting visual quality.

  Cheers

  Walter
  .




  -----------------------------------------------------
  Home page: http://groups.yahoo.com/group/delphi-en/
  To unsubscribe: [EMAIL PROTECTED] 


        Yahoo! Groups Sponsor 
              ADVERTISEMENT
             
       
       


------------------------------------------------------------------------------
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/
      
    b.. To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]
      
    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 




[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to