alchemy-fr / phpexiftool Goto Github PK
View Code? Open in Web Editor NEWA PHP Exiftool driver
License: Other
A PHP Exiftool driver
License: Other
Hi,
some dependencies are outdated:
In order to ensure maximum compatibility with other packages, it would be nice to have updated requirements (provided that the update doesn't break anything).
Thanks!
I am not able to write the RegistryEntryRole for the (JPG) image. I used below code snippet :
require __DIR__ . '/autoload.php';
use Monolog\Logger;
use PHPExiftool\Writer;
use PHPExiftool\Driver\Metadata\Metadata;
use PHPExiftool\Driver\Metadata\MetadataBag;
use PHPExiftool\Driver\Tag\IPTC\ObjectName;
use PHPExiftool\Driver\Value\Mono;
use PHPExiftool\Driver\Tag\XMPIptcExt\RegistryEntryRole;
$logger = new Logger('exiftool');
$writer = Writer::create($logger);
$bag = new MetadataBag();
$bag->add(new Metadata(new RegistryEntryRole(), new Mono('New Value')));
$writer->write('test.jpg', $bag);
i checked the image metadata by both phpexiftool and getpmd.iptc.org, neither of them shows me RegistryEntryRole value.
Any suggestion why?
PHPEXIFTOOL: 0.7.3
Thank You.
I am unable to find any code in which I can modify existing tags or add a new tag according to my own choice.
$bag = new MetadataBag();
$bag->add(new Metadata(new ObjectName(), new Mono('Pretty cool subject')));
$writer->write('1.eps', $bag);
This code assigns a random new tag.
I want to modify existing tag. Please help?
I hope this message finds you well. I encountered an issue while trying to install the alchemy/phpexiftool package via Composer. Here's the problem I encountered:
Problem 1
alchemy/phpexiftool version 4.0.0 and 4.0.1 require exiftool/exiftool with a version constraint of *, but it could not be found in any version. This suggests there may be a typo in the package name or an issue with the package repository.
Additionally, the root composer.json file of my project requires alchemy/phpexiftool with a version constraint of ^4.0, which should be satisfiable by versions 4.0.0 and 4.0.1 of alchemy/phpexiftool.
However, due to the missing exiftool/exiftool dependency, I'm unable to use the alchemy/phpexiftool package in my project as intended.
I kindly request your assistance in resolving this issue. If there is any additional information needed or if you require further clarification, please don't hesitate to reach out to me. Thank you for your time and support.
I am getting the following error trying to add exif data to an image:
**Unable to get exiftool binary**
Error: An Internal Error Has Occurred.
Stack Trace
APP/Vendor/PHPExiftool/Exiftool.php line 50 → PHPExiftool\Exiftool::getBinary()
APP/Vendor/PHPExiftool/Writer.php line 299 → PHPExiftool\Exiftool->executeCommand(string, integer)
APP/Controller/AdminController.php line 429 → PHPExiftool\Writer->write(string, PHPExiftool\Driver\Metadata\MetadataBag)
[internal function] → AdminController->imgdef()
CORE/Cake/Controller/Controller.php line 499 → ReflectionMethod->invokeArgs(AdminController, array)
CORE/Cake/Routing/Dispatcher.php line 193 → Controller->invokeAction(CakeRequest)
CORE/Cake/Routing/Dispatcher.php line 167 → Dispatcher->_invoke(AdminController, CakeRequest)
APP/webroot/index.php line 117 → Dispatcher->dispatch(CakeRequest, CakeResponse)
I have conformed at exiftool is located at:
root@sds n00002621 # where exiftool
/usr/local/bin/exiftool
Using macos 10.15.6, PHP 7.4.10, and CakePHP 2.10.22.
Any suggestions on how to fix this?
Stuart
Hi @jygaulier @4rthem @nmaillat, it appears version 4.1 of PHPExiftool has disappeared from Packagist. It was the only version we were able to use with Symfony 3.4 and the latest exiftool version. This will most likely break our builds (after caches exipre). What is the cause of the removal? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.