У меня есть следующий код на PHP, который отвечает за прием файла и его последующее преобразование из HEIC -> JPG с помощью https://www.libvips.org/API/current/VipsForeignSave.html#vips-jpegsave. библиотека [code]// Write image to temp file $raw_photo = $request->getBody(); $temp = tmpfile(); fwrite($temp, $raw_photo);
// Get the file path $temp_meta = stream_get_meta_data($temp); $temp_path = $temp_meta['uri'];
// Create image using Vips library $image = Image::newFromFile($temp_path);