I was surprised to find out how different jpg algorithms are. If you can buy a lib, checkout jpg.com.I've saved over 10% before adjustingthe quality factor, and sometimes 90% or more before there was much image degradation. This obviously depends mostly or how good or bad the algorithms is the original are. Their libs don't decompress then recompress the images, they convert the compressed image directly.
I have no association with them other than I've been impressed by their product. HTH, Roger C. Morgan II --- In [email protected], GreatDayDan <[EMAIL PROTECTED]> wrote: > Good Morning! > > Yep, I knew that. I was just hoping that someone > knew of a trick to compress it even more before adding > it to the db. > > Thanks...Dan'l > > --- Walter Prins <[EMAIL PROTECTED]> wrote: > > > > > > ----- 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 Links > > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > ____________________________________ > Every day is a Great day, but > some days are GREATER than others! > > > > __________________________________ > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site! > http://smallbusiness.yahoo.com/resources/ ----------------------------------------------------- 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/

