Issue 277 in webp: Expose image decoding and encoding to WebPPicture as a library

45 views
Skip to first unread message

shubham.bittu@gmail.com via Monorail

unread,
Nov 23, 2015, 3:44:29 AM11/23/15
to webp-d...@webmproject.org
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 277 by shubham....@gmail.com: Expose image decoding and encoding
to WebPPicture as a library
https://bugs.chromium.org/p/webp/issues/detail?id=277

This is an enhancement request and not a defect.

There is code in the WebP library examples which reads various images into
a WebPPicture in memory object.
See https://github.com/webmproject/libwebp/blob/master/examples/cwebp.c

Similarly, there is code to write WebPPicture to disk in the dwebp.c file.

Is it possible to expose this code as a library, so that it is simple for
others trying to use the apis which rely on WebPPicture in memory object to
reuse the code?



--
You received this message because:
1. The project was configured to send all issue notifications to this
address

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

shubham.bittu@gmail.com via Monorail

unread,
Nov 23, 2015, 3:46:42 AM11/23/15
to webp-d...@webmproject.org

Comment #1 on issue 277 by shubham....@gmail.com: Expose image decoding and
encoding to WebPPicture as a library
https://bugs.chromium.org/p/webp/issues/detail?id=277#c1

Sorry, for not opening it as enhancement, can't find a way to edit it now.

pascal.massimino@gmail.com via Monorail

unread,
Dec 1, 2015, 10:04:32 AM12/1/15
to webp-d...@webmproject.org

Comment #3 on issue 277 by pascal.m...@gmail.com: Expose image decoding and
encoding to WebPPicture as a library
https://bugs.chromium.org/p/webp/issues/detail?id=277#c3

these utilities are already compiled as a separate
library "examples/libexampleutil.a"
by the 'configure' autotools.

(see examples/Makefile.am entry).

Pascal Massimino

unread,
Jun 2, 2016, 1:31:34 AM6/2/16
to WebP Discussion
Hi,

an update:

On Tue, Dec 1, 2015 at 7:04 AM, pascal.m...@gmail.com via Monorail <we...@monorail-prod.appspotmail.com> wrote:

Comment #3 on issue 277 by pascal.m...@gmail.com: Expose image decoding and encoding to WebPPicture as a library
https://bugs.chromium.org/p/webp/issues/detail?id=277#c3

these utilities are already compiled as a separate library "examples/libexampleutil.a"
by the 'configure' autotools.

(see examples/Makefile.am entry).

Some recent patches [1][2] might be of interest: it gathers all decoding functions for PNG/JPEG/WebP/TIFF
into a single examples/libexampledec.a library. Rather practical.

skal/






--
You received this message because:
  1. The project was configured to send all issue notifications to this address

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

--
You received this message because you are subscribed to the Google Groups "WebP Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webp-discuss...@webmproject.org.
To post to this group, send email to webp-d...@webmproject.org.
Visit this group at http://groups.google.com/a/webmproject.org/group/webp-discuss/.
For more options, visit https://groups.google.com/a/webmproject.org/d/optout.

pascal.massimino@gmail.com via Monorail

unread,
Jun 2, 2016, 1:33:10 AM6/2/16
to webp-d...@webmproject.org

Comment #4 on issue 277 by pascal.m...@gmail.com: Expose image decoding and encoding to WebPPicture as a library
https://bugs.chromium.org/p/webp/issues/detail?id=277#c4


https://chromium-review.googlesource.com/#/c/348750/
https://chromium-review.googlesource.com/#/c/348240/

introduced a common decoding library examples/libexampledec
It's not exposed or installed publicly though, but could come in handy.

Jose del carmen veloz

unread,
Jun 2, 2016, 9:31:30 PM6/2/16
to webp-d...@webmproject.org
Z🎀  rv fc. Df x cfez dv z.  Fee w e. Ff x. D d c ex c. ewveeswgeres xe zx ww e s wd x wf e re fwff f xd e

De: Pascal Massimino
Enviado el: ‎1/‎6/‎16 11:31 p. m.
Para: WebP Discussion
Asunto: Re: Issue 277 in webp: Expose image decoding and encoding toWebPPicture as a library

pascal.m… via monorail

unread,
Sep 5, 2016, 11:09:57 AM9/5/16
to webp-d...@webmproject.org
Updates:
Status: Started

Comment #5 on issue 277 by pascal.m...@gmail.com: Expose image decoding and encoding to WebPPicture as a library
https://bugs.chromium.org/p/webp/issues/detail?id=277#c5

update: the tip of the tree now has a fully separated source directory for all image utilities: imageio/

The interesting header files there are:
imageio/image_dec.h (generic reader callback for JPEG/PNG/WebP...)
imageio/imageio_util.h (for reading / writing raw data chunks to file)

The corresponding libraries are:
imageio/libimagedec.a
imageio/libimageio_util.a

There's no likely reasons the names will change in the foreseeable future.

The saving part is still a TODO: most of the saving code is still in dwebp.c, and should be extracted to its own library.

bugdro… via monorail

unread,
Sep 8, 2016, 11:01:02 PM9/8/16
to webp-d...@webmproject.org

jz… via monorail

unread,
Jan 20, 2017, 3:40:42 PM1/20/17
to webp-d...@webmproject.org
Updates:
Status: Fixed

Comment #7 on issue 277 by jz...@google.com: Expose image decoding and encoding to WebPPicture as a library
https://bugs.chromium.org/p/webp/issues/detail?id=277#c7

I don't think we'll include these as a release library, but they can be extracted for reuse now, they don't have many dependencies within the tree.
Reply all
Reply to author
Forward
0 new messages