webp2gif icon indicating copy to clipboard operation
webp2gif copied to clipboard

Simply doesn't work

Open KenSharp opened this issue 3 years ago • 4 comments

$ ../webp2gif audible1.webp audible1.gif
ERROR: Too many arguments for '-info'.
ERROR: No action specified.
Exiting due to command-line parsing error.
ERROR at 'folder/untitled': Multiple input files specified.
Exiting due to command-line parsing error.
Usage: webpmux -get GET_OPTIONS INPUT -o OUTPUT
       webpmux -set SET_OPTIONS INPUT -o OUTPUT
       webpmux -duration DURATION_OPTIONS [-duration ...]
               INPUT -o OUTPUT
       webpmux -strip STRIP_OPTIONS INPUT -o OUTPUT
       webpmux -frame FRAME_OPTIONS [-frame...] [-loop LOOP_COUNT]
               [-bgcolor BACKGROUND_COLOR] -o OUTPUT
       webpmux -info INPUT
       webpmux [-h|-help]
       webpmux -version

GET_OPTIONS:
 Extract relevant data:
   icc       get ICC profile
   exif      get EXIF metadata
   xmp       get XMP metadata
   frame n   get nth frame

SET_OPTIONS:
 Set color profile/metadata:
   icc  file.icc     set ICC profile
   exif file.exif    set EXIF metadata
   xmp  file.xmp     set XMP metadata
   where:    'file.icc' contains the ICC profile to be set,
             'file.exif' contains the EXIF metadata to be set
             'file.xmp' contains the XMP metadata to be set

DURATION_OPTIONS:
 Set duration of selected frames:
   duration            set duration for each frames
   duration,frame      set duration of a particular frame
   duration,start,end  set duration of frames in the
                        interval [start,end])
   where: 'duration' is the duration in milliseconds
          'start' is the start frame index
          'end' is the inclusive end frame index
           The special 'end' value '0' means: last frame.

STRIP_OPTIONS:
 Strip color profile/metadata:
   icc       strip ICC profile
   exif      strip EXIF metadata
   xmp       strip XMP metadata

FRAME_OPTIONS(i):
 Create animation:
   file_i +di+[xi+yi[+mi[bi]]]
   where:    'file_i' is the i'th animation frame (WebP format),
             'di' is the pause duration before next frame,
             'xi','yi' specify the image offset for this frame,
             'mi' is the dispose method for this frame (0 or 1),
             'bi' is the blending method for this frame (+b or -b)

LOOP_COUNT:
 Number of times to repeat the animation.
 Valid range is 0 to 65535 [Default: 0 (infinite)].

BACKGROUND_COLOR:
 Background color of the canvas.
  A,R,G,B
  where:    'A', 'R', 'G' and 'B' are integers in the range 0 to 255 specifying
            the Alpha, Red, Green and Blue component values respectively
            [Default: 255,255,255,255]

INPUT & OUTPUT are in WebP format.

Note: The nature of EXIF, XMP and ICC data is not checked and is assumed to be
valid.
cannot open input file '1.webp'
convert-im6.q16: unable to open image `1.png': No such file or directory @ error/blob.c/OpenBlob/2701.
convert-im6.q16: no images defined `1.png' @ error/convert.c/ConvertImageCommand/3258.
converting all png frame file to gif...
convert-im6.q16: unable to open image `*.png': No such file or directory @ error/blob.c/OpenBlob/2701.
convert-im6.q16: no images defined `animation.gif' @ error/convert.c/ConvertImageCommand/3258.
mv: target 'folder/audible1.gif' is not a directory
finished with success!

KenSharp avatar Dec 16 '20 14:12 KenSharp

@KenSharp Is there any online address to get audible1.webp for testing? It seems that the 'webp2gif' script is not in the same directory with your audible1.webp file,try putting them in the same directory.

elsonwx avatar Dec 16 '20 14:12 elsonwx

try putting them in the same directory.

I can't believe I missed that! That gets it working, though the framerate is way off.

audible1.webp for reference.

KenSharp avatar Dec 16 '20 16:12 KenSharp

try putting them in the same directory.

I can't believe I missed that! That gets it working, though the framerate is way off.

audible1.webp for reference.

frame rate is fixed in https://github.com/elsonwx/webp2gif/commit/f44a21f4bcd3d44885f162008d0e3d1e7b2e64d6

elsonwx avatar Dec 17 '20 01:12 elsonwx

Very quick work! I see from the commit that the loop settings aren't carried forward either.

So maybe there's an issue with the script needing to be in the same directory? Most scripts will be run from a central location. (Then this can be closed I guess 😉)

KenSharp avatar Dec 17 '20 09:12 KenSharp