John Cupitt
John Cupitt
Did you see the docs? https://libvips.github.io/php-vips/docs/classes/Jcupitt.Vips.Image.html For example: ```php #!/usr/bin/env php
Your JPEG probably doesn't have this field -- not all cameras provide it. You can get orientation in the same way. ```php echo "orientation = " . $image->get("orientation") . "\n";...
Perhaps your libvips is missing EXIF support? You'll need `libexif-dev` at compile time.
libvips is able to extract the EXIF data block from the JPG file, but it needs libexif to parse it. Where did you get the libvips binary from?
Hello again @vnkapoor, `brightness` is used to multiply the luminance, so values less than 1 will make it darker. Try 1.2.
I'd guess imagemagick is moving the zero up and taking the contrast down. Add eg. 50 to each pixel and multiply by 255 / (255 - 50).
Try swapping: ```php ->colourspace(Interpretation::LCH) ->linear([$brightness, $saturation, 1.0], [0.0, 0.0, $hue]) ->colourspace($oldInterpretation) ``` For: ```php ->add(50) ->multiply(255.0 / (255 - 50)) ```
Ooop, of course I meant `(255 - 50) / 255`. ```php #!/usr/bin/php
Oh yes, I'd forgotten about `nodelete`. Sure, let's do it!
Well done for finding and fixing these issues Kleis! @AssortedPelican, @lucasnetau would you be able to test again?