Re: JPG Image Load,Resize,Save with 100% Python?

From: Derek Ledbetter (derekledbetter_at_mindspring.com)
Date: 02/12/04

  • Next message: Greg Ewing (using news.cis.dfn.de): "Re: [OPINION] - does language really matter if they all do the samething?"
    Date: Thu, 12 Feb 2004 02:08:28 GMT
    
    

    On Sun, 8 Feb 2004 5:25:47 -0800, Ingo Linkweiler wrote
    (in message <c05dj3$q37$04$1@news.t-online.com>):

    > I am looking for a 100% python lib/script which can load a jpg image,
    > detect its size, resize and save it as new file.

    Note that decoding, resizing and recompressing a JPEG hurts the
    quality. See:
        http://www.faqs.org/faqs/jpeg-faq/

    -- 
    Derek Ledbetter
    derekl@serve.com
    Heavy boots of lead 
    fills his victims full of dread 
    Running as fast as they can 
    Iron Man lives again! 
    

  • Next message: Greg Ewing (using news.cis.dfn.de): "Re: [OPINION] - does language really matter if they all do the samething?"

    Relevant Pages

    • Re: JPEG quality loss
      ... I had a slightly similar problem - which was loss of quality while ... In the end I was forced to use ImageMagick to do the resizing ... the source image - and it might be easier to manipulate the source ...
      (comp.lang.java.programmer)
    • Re: Resizing Images
      ... I am resizing them by creating a new bitmap object and saving it out ... I can get the image to resize fine, but the image quality is bad ... If you are resizing an image, some loss of quality is inevitable. ... Reducing the size of an image will necessarily cause a loss of information, and increasing the size of an image will necessarily result in an image for which the full resolution of the output image is not taken advantage of. ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Resizing photos, quality
      ... When resizing an image to be smaller, ... file with a high amount of compression there is the chance that artifcats ... increase quality or left to decrease quality ... > That depends on how you resize the photos. ...
      (microsoft.public.windowsxp.photos)
    • Re: Resizing gif and jpeg
      ... Bitmap files are awfully big.....make sure you convert it to Jpg or ... Gif for optimal viewing quality and minimal download times. ... work with a bitmap original when editing and resizing. ...
      (microsoft.public.frontpage.client)
    • Re: Another Format question
      ... If you go to mpeg2 you run the risk of recompressing the file on ... output from the editor. ... This may reduce the quality. ...
      (rec.video.production)