I would like to reduce the filesize of taken photos, but changing the quality option doesnt have an effect. The file size is always nearly the same, depending on the light condition. For testing I m using a webcam on a tripod. And after uploading a photo on my linux server, the command “file” for checking the file type shows “PNG image data …” (?).
“The format of the image, ex: jpeg, png, gif. iOS and Android only support jpeg. Web supports jpeg and png. gif is only supported if using file input.”
Ok then, but is there maybe a good package for manipulating photos or creating thumbnails?
I thought I could create a thumbnail with image-thumbnail, but this seems to work only on server-side with node.js. It would have been perfect, taking a photo and saving just a 200x200 px centre cover from the original photo, forced to jpeg.
As long as there is no other solution, I do it all in php with Imagick. resize, crop and png to jpeg. A picture that has e.g. a size of 500 KB has in the end only about 20 KB in jpeg format. Picture used for profile image and avatar.