Questions tagged [compress-images]
4 questions
1
vote
0 answers
How to change Image Orientation on uploading after compressing it using exif - PHP
I tried compressing images using PHP compressImage function which works perfectly fine.
But when I try to upload a portrait image, it compresses it and uploads it in the landscape. After surfing on this query, I came to know that when an image gets…

Ambiguous Turtle
- 97
- 2
- 19
1
vote
2 answers
How can I compress an image when sending to Firebase in this situation?
I am developing an app for android devices like WhatsApp. It is already in a very advanced state and I am correcting minor problems that I was encountering. But this one I am having difficulty solving in particular.
The goal would be to compress the…

Pedro Campota
- 31
- 4
0
votes
1 answer
How to compress image size while uploading to server in php?
I tried this function to compress image while uploading to server. But images are uploaded without reducing the size of image.
// Compress image
function compressImage($source, $destination, $quality) {
$info = getimagesize($source);
if…

Rupesh Kumar Sahu
- 13
- 3
0
votes
1 answer
How can I find the man page for compress-cli?
I am trying to run the cli made for compress,
compress -i /Users/antoniopavicevac-ortiz/Sites/jcb-image-optimization/src -o /Users/antoniopavicevac-ortiz/Sites/jcb-image-optimization/dist/images
But got back:
compress: illegal option -- i usage:…

Antonio Pavicevac-Ortiz
- 7,239
- 17
- 68
- 141