Replies: 4 comments 9 replies
-
Hi @web-apply, It should just be: $im = Vips\Image::newFromFile("x.png", ['access' => Vips\Access::SEQUENTIAL]);
$im->writeToFile("y.gif"); You'll need to give a lot more information: platform, image samples, libvips version, php-vips version, install method, error message, etc. etc. |
Beta Was this translation helpful? Give feedback.
-
@jcupitt I couldn't set FFI in PHP. Because I'm using Litespeed PHP (LSAPI). So I see my work with legacy code. Problem only writing gif file. $x = vips_image_new_from_file("is/a.jpg")["out"]; no working - vips_image_write_to_file($x, "out/e.gif",["Q"=>90]); VIP version: 8.13.2 Php Ext functions
|
Beta Was this translation helpful? Give feedback.
-
You can use the 1.x branch of php-vips and get a nice API. I wouldn't use php-vips-ext directly. What libvips version is this? If it's older than 8.11, you need to update to get GIF write. |
Beta Was this translation helpful? Give feedback.
-
@jcupitt I have the following code for converting HEIC -> JPG:
The generated file does have a .jpg extension: However, certain applications like Slack or even using https://www.checkfiletype.com shows the image as still being HEIF: Is there anything else I am missing? |
Beta Was this translation helpful? Give feedback.
-
How can I convert any image file to a non-animated gif, like PNG to JPG? I always get an error.
Beta Was this translation helpful? Give feedback.
All reactions