A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: compress BitmapData

  1. #1
    Member
    Join Date
    Nov 2005
    Posts
    75

    Question compress BitmapData

    i am rendering a BitmapData from my webcam and sending the rendered ByteArray (i cant compress using ZLIB because its not running on AIR) file as binary to a server side. problem is each JPEG picture is around 40kb and it needs to be compressed a bit. now i am not talking about resizing the image, just making the file size smaller. anyone know how to do this?

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Why not encode to jpeg on the client and just send the compressed image?

    http://henryjones.us/articles/using-...3-jpeg-encoder
    Please use [php] or [code] tags, and mark your threads resolved 8)

  3. #3
    Member
    Join Date
    Nov 2005
    Posts
    75
    yeah, thats what i wound up doing at the end because i was encoding as PNG before, the only downturn is that there is only 1kb of difference between minimium and maximium quality.

Tags for this Thread

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center