image optimization in firebase storage

376 views
Skip to first unread message

demian triebl

unread,
Nov 14, 2017, 10:03:57 AM11/14/17
to Firebase Google Group
Is there a plan to optimize images  automatically when they are uploaded? it would be great that insidevar uploadTask = storageRef.child ('images / mountains.jpg'). put (file, metadata) .optimize (70, 200, 200)
(taking into account that for example the first value is the percentage of optimization, the width and the height of the image), and that they use a good guetzli or imageimagik compression system, I think optimizing images is paramount for the internet and doing it simple would be a good option

Kato Richardson

unread,
Nov 14, 2017, 11:23:30 AM11/14/17
to Firebase Google Group
Hi Demian,

You should be able to do this with Functions fairly easily. You can trigger a function to run when a new file is created and we have an example of doing image manipulation you could build from.

☼, Kato

On Tue, Nov 14, 2017 at 5:20 AM, demian triebl <demian...@gmail.com> wrote:
Is there a plan to optimize images  automatically when they are uploaded? it would be great that insidevar uploadTask = storageRef.child ('images / mountains.jpg'). put (file, metadata) .optimize (70, 200, 200)
(taking into account that for example the first value is the percentage of optimization, the width and the height of the image), and that they use a good guetzli or imageimagik compression system, I think optimizing images is paramount for the internet and doing it simple would be a good option

--
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-talk+unsubscribe@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/1569e8cb-6573-40a1-80d3-f840a4f358a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

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

Reply all
Reply to author
Forward
0 new messages