Skip to content

Stream gif and heic thumbnails #1829

Closed
Closed
@isaldana

Description

@isaldana

I am trying to resize and stream .gif files. It works fine when writing to a file but not when streaming.

The following command to write to a file works:

$ vipsthumbnail sample_animated.gif -o x1.gif --size '400x>'

but the following fails

$ cat sample_animated.gif|vips thumbnail_source [descriptor=0] --size down .gif 400 --height 16000 > x2.gif
VipsForeignSave: ".gif" is not a known target format

Is there anyway I can save a .gif file to stdout? I am assuming vipsthumbnail doesn't support stdout yet.

A similar but maybe unrelated issue occurs with heic files.

The following command works:

$ vipsthumbnail sample1.heic -o x.jpg --size '400x>'

but the following fails

$ cat sample1.heic |vips thumbnail_source [descriptor=0] --size down .png '400x>' --height 16000 > x.jpg
heif: Invalid input: No 'ftyp' box (2.102)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions