Firebase functions imagemagick version support webp?

179 views
Skip to first unread message

David DeRemer

unread,
Jun 19, 2018, 4:39:36 PM6/19/18
to Firebase Google Group
We have some Firebase Functions that process images into various sizes. We were considering using .webp format... but when we try using ImageMagick `convert` in a function, it throws a child process error. Perhaps webp isn't available on the machines running Firebase Functions?

Seems like Google infrastructure should support a Google format, right? :-)

Kato Richardson

unread,
Jun 21, 2018, 3:01:39 PM6/21/18
to Firebase Google Group
Hi David,

Doesn't look like it's supported. Note that you can upload a binary as part of your deploy, so you could provide your own IM version or go with the sharp lib, which bypasses the need to deal with temp files and such.

On Tue, Jun 19, 2018 at 1:39 PM David DeRemer <da...@verygood.ventures> wrote:
We have some Firebase Functions that process images into various sizes. We were considering using .webp format... but when we try using ImageMagick `convert` in a function, it throws a child process error. Perhaps webp isn't available on the machines running Firebase Functions?

Seems like Google infrastructure should support a Google format, right? :-)

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/efda5234-964a-4bef-bd4a-e9dd15ab0e70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

David DeRemer

unread,
Jul 2, 2018, 12:43:32 PM7/2/18
to Firebase Google Group
Thanks Kato! Ace help as usual.

For future viewers, here's a SO link that explains uploading a binary: https://stackoverflow.com/a/42777596/3457022

Kato Richardson

unread,
Jul 2, 2018, 12:54:31 PM7/2/18
to Firebase Google Group
Cheers, thanks for sharing links for others ♡

P.S. Looks like I forgot to point out that this is great feedback. I've submitted a feature request to add .webp into the default binary. It may not get any traction but we've asked for improvement based on your input.


For more options, visit https://groups.google.com/d/optout.

David DeRemer

unread,
Jul 2, 2018, 1:58:01 PM7/2/18
to fireba...@googlegroups.com
Great!

One more question… on that SO, Doug Stevenson says "Bear in mind that you have a limited about of temp disk space and memory to work with. In fact, temp disk is stored in memory, so if you have a large video, you could easily run out of memory."

I assume he’s just talking about the file being manipulated, but it got me wondering… Does uploading a binary have any effect on the function’s temp disk space and memory? Anything to worry about there?


You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/byj_ccuYDrA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

Kato Richardson

unread,
Jul 2, 2018, 2:24:15 PM7/2/18
to Firebase Google Group
I don't think that affects temp space or memory directly. I think the quota to keep in mind here is total deploy size as you could run into that with too many binaries (but you'd have to work pretty hard).


For more options, visit https://groups.google.com/d/optout.

David DeRemer

unread,
Jul 2, 2018, 6:21:01 PM7/2/18
to fireba...@googlegroups.com
👍 thanks for the info!

-David
Reply all
Reply to author
Forward
0 new messages