{"id":1334,"date":"2021-12-30T10:18:16","date_gmt":"2021-12-30T10:18:16","guid":{"rendered":"https:\/\/html5-chat.com\/blog\/?p=1334"},"modified":"2021-12-30T10:18:17","modified_gmt":"2021-12-30T10:18:17","slug":"fast-image-uploading","status":"publish","type":"post","link":"https:\/\/html5-chat.com\/blog\/fast-image-uploading\/","title":{"rendered":"Fast image uploading"},"content":{"rendered":"\n<p>We have added a new feature: <strong>fast image uploading<\/strong>. This feature is based on the client size resizing.<\/p>\n\n\n\n<p>The normal process of uploading images is the following: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>chatter chooses an image<\/li><li>this image is uploaded to server<\/li><li>this image is resized<\/li><li>the resized image is sent back to chat<\/li><\/ul>\n\n\n\n<p>As you see, if you choose a huge image (50 megas for instance), uploading process can take time since you need to upload 50 megas. This can be a real pain with mobile phones.<\/p>\n\n\n\n<p>We have introduced the resizing on client side before uploading to server. <\/p>\n\n\n\n<p>S<strong>o now the process is:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>chatter chooses an image<\/li><li>this image is resized<\/li><li>this resized image is uploaded to server<\/li><li>the resized image is sent back to chat<\/li><\/ul>\n\n\n\n<p>As you can see, the process is much quicker. Besides it allows to upload big size photos since they will be resized before.<\/p>\n\n\n\n<p>Now the caveat of this method is that the final image has JPEG format only. So you upload an animated GIF, you will get a static JPEG picture<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have added a new feature: fast image uploading. This feature is based on the client size resizing. The normal process of uploading images is the following: chatter chooses an image this image is uploaded to server this image is resized the resized image is sent back to chat As you see, if you choose [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1337,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[189,188,18],"class_list":["post-1334","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-features","tag-image","tag-picture","tag-upload"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/1334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/comments?post=1334"}],"version-history":[{"count":2,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/1334\/revisions"}],"predecessor-version":[{"id":1338,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/1334\/revisions\/1338"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media\/1337"}],"wp:attachment":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media?parent=1334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/categories?post=1334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/tags?post=1334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}