image-optimization

Image optimization like whatsapp and instagram in ios and android

我们两清 提交于 2019-12-25 19:30:21
问题 Task :- optimize image like Facebook and WhatApp does? Upload image to server with optimize size in android and ios without losing image quality and dimension. I have seen many code like native image compression (UIImageJPEGRepresentation(viewImage, 0.8)) but I am not able to get proper result. Can someone suggest me any algorithm or library in iOS and android through which we can optimise the image without losing quality. Links I already visited: iOS What's the easiest way to resize/optimize

Does using image sprites make sense in HTTP/2?

我怕爱的太早我们不能终老 提交于 2019-12-22 03:51:14
问题 The bundling of JS and CSS files won't be necessary in HTTP/2, but what about image sprites? Looking at the demo it seems that it already works way faster than HTTP/1.1, but won't bundling images into sprites make it even faster? I mean, won't the PNG's optimization algorithms work better when all the data is in a single file? 回答1: It depends of your image(s) sizes and format. If the images are big enough, you won't gain much by using sprites, but for small images there are significant gains,

What is PngCrush in iOS?

早过忘川 提交于 2019-12-17 16:27:01
问题 i know that Pngcrush is an image optimisation technique in iOS , but my doubt is does X-code will perform this internally during each build or before deploying our app to iTunes store we need to do this image optimization? 回答1: Xcode does the conversion during build. The final app will have modified pngs, you don't have to do anything manually. 回答2: The PNG crushing is done using the pngcrush tool which you can access manually with this command: xcrun -sdk iphoneos pngcrush -iphone ... Xcode

How to do PngCrush for my images of iOS app? [duplicate]

风格不统一 提交于 2019-12-12 05:09:38
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: What is PngCrush in iOS? I'm having a doubts about image optimisation technique of iOS apps Pngcrush My doubt is, Is pngcrush built-in to xcode or do we need to explicitly download pngcrush tool and optimise our images? If we want to do it explicitly how can we achieve this? 回答1: This question may solve your problem: Skipping the 'CompressResources' build step for XCode iPhone apps Another thing is there might

Optimize uploaded images with php (jpeg)

十年热恋 提交于 2019-12-08 22:46:06
问题 When running Page Speed in Google Chrome it suggests to optimize/compress the images. These images are mostly uploaded by users, so I would need to optimize them during uploading. What I find about optimizing jpeg images with php is something like using the following GD functions: getimagesize() imagecreatefromjpeg() imagejpeg() Since I am resizing the images after upload I'm already pulling the image through these functions and in addition I use imagecopyresampled() after imagecreatefromjpeg

Optimize images - Losslessly compress images in Java

空扰寡人 提交于 2019-12-07 12:11:41
问题 Having an ecommerce website, We have thousands of product images. On checking pagespeed on google it shows me something like this: I was wondering, if there is any built in feature in Java or any third party library is available with which we can losslessly compress all the images that we host. Hence we can save few KBs of our customers. On searching through internet I found few like punnypng and kraken which are paid, hence we do not have heavy image uploaded every month, subscribing to them

Optimize images - Losslessly compress images in Java

為{幸葍}努か 提交于 2019-12-06 00:49:22
Having an ecommerce website, We have thousands of product images. On checking pagespeed on google it shows me something like this: I was wondering, if there is any built in feature in Java or any third party library is available with which we can losslessly compress all the images that we host. Hence we can save few KBs of our customers. On searching through internet I found few like punnypng and kraken which are paid, hence we do not have heavy image uploaded every month, subscribing to them is not worth. I would prefer any built in feature in Java or any open source third party library. I

Image Optimization (Google App Engine with Python)

强颜欢笑 提交于 2019-12-05 06:31:40
问题 I haven't found a similar question that I'm looking for Image Optimization. I've tested how much Facebook can optimize the image uploaded: 980KB --> 77KB 846KB --> 62.1KB From what I found out, Facebook is capable of optimizing the image up to 10 times while still pertaining some minimum image quality, as for the test above. So, can anyone share what are the best ways that you have implemented to optimize image uploaded by user ? When I searched in internet, I've seen some websites offer paid

Does using image sprites make sense in HTTP/2?

谁说我不能喝 提交于 2019-12-05 01:14:16
The bundling of JS and CSS files won't be necessary in HTTP/2 , but what about image sprites? Looking at the demo it seems that it already works way faster than HTTP/1.1, but won't bundling images into sprites make it even faster? I mean, won't the PNG's optimization algorithms work better when all the data is in a single file? It depends of your image(s) sizes and format. If the images are big enough, you won't gain much by using sprites, but for small images there are significant gains, even when using HTTP/2. What makes HTTP/2 better is that there is much less overhead for headers and

Google Page Speed-Like Image Optimization [closed]

可紊 提交于 2019-12-03 15:09:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . My website has about 20 thousand product images. Google Page Speed tells me they can be optimized, and it's correct - the difference is huge. Google is able to maintain identical quality and reduce the image size by 70-90%, and Page Speed even optimizes them for me and provides me with a link to the optimized