Menu

write image to blob failed when the image is webp (1.3.19)

Help
wu zhenyu
2014-03-12
2014-03-17
  • wu zhenyu

    wu zhenyu - 2014-03-12
    Image img = Image("1.webp");
    Blob blob;
    img.write(&blob);
    

    when i use the write, except occur.

     
    • Bob Friesenhahn

      Bob Friesenhahn - 2014-03-12

      On Wed, 12 Mar 2014, wu zhenyu wrote:

      Image img = Image("1.webp");
      Blob blob;
      img.write(&blob);

      when i use the write, except occur.

      Thanks for bringing this to our attention. It seems that webp was not
      added to the GraphicsMagick test suite yet since otherwise this
      problem would already have been discovered.

      Bob

      Bob Friesenhahn
      bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
      GraphicsMagick Maintainer, http://www.GraphicsMagick.org/

       
    • Bob Friesenhahn

      Bob Friesenhahn - 2014-03-13

      On Wed, 12 Mar 2014, wu zhenyu wrote:

      Image img = Image("1.webp");
      Blob blob;
      img.write(&blob);

      when i use the write, except occur.

      write image to blob failed when the image is webp (1.3.19)

      If you are using source code, the fix is very simple. Change the last
      source line in coders/webp.c to:

         return (webp_status ? MagickPass : MagickFail);
      

      The fixes are in Mercurial and will be in tonight's source
      development snapshot. Now WebP is added to the test suite and the
      test suite is passing.

      The WebP support is very new and many enhancements are still planned.

      Bob

      Bob Friesenhahn
      bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
      GraphicsMagick Maintainer, http://www.GraphicsMagick.org/

       
      • wu zhenyu

        wu zhenyu - 2014-03-17

        many thanks, i will try.

         

Log in to post a comment.