Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with image watermark in FileModify #1

Open
cyclingbatman opened this issue Mar 7, 2018 · 4 comments
Open

Working with image watermark in FileModify #1

cyclingbatman opened this issue Mar 7, 2018 · 4 comments

Comments

@cyclingbatman
Copy link

The text method works in your example but could not get the image watermark to work.

I have used the mogrify command on the terminal and it worked. See below.

Any ideas on why the convert statement with FileModify and Omeka will not process?

mogrify -format jpg -matte
-draw 'gravity south image src-over 0,100 250,250 "/var/www/files/original/watermark.png"' *.jpg

Omeka has encountered an error

Zend_Exception

Something went wrong with image conversion for file " with the plugin File Modify.

Zend_Exception: Something went wrong with image conversion for file " with the plugin File Modify. in /var/www/plugins/FileModify/FileModifyPlugin.php:283
Stack trace:
#0 /var/www/plugins/FileModify/FileModifyPlugin.php(153): FileModifyPlugin::_convert(Object(File))
#1 /var/www/application/libraries/Omeka/Plugin/Broker.php(157): FileModifyPlugin->hookBeforeSaveFile(Array)
#2 /var/www/application/libraries/Omeka/Record/AbstractRecord.php(298): Omeka_Plugin_Broker->callHook('before_save_fil...', Array)
#3 /var/www/application/libraries/Omeka/Record/AbstractRecord.php(531): Omeka_Record_AbstractRecord->runCallbacks('beforeSave', Array)
#4 /var/www/application/models/Item.php(337): Omeka_Record_AbstractRecord->save()
#5 /var/www/application/models/Item.php(250): Item->saveFiles()
#6 /var/www/application/libraries/Omeka/Record/AbstractRecord.php(277): Item->afterSave(Array)
#7 /var/www/application/libraries/Omeka/Record/AbstractRecord.php(550): Omeka_Record_AbstractRecord->runCallbacks('afterSave', Array)
#8 /var/www/application/libraries/Omeka/Controller/AbstractActionController.php(188): Omeka_Record_AbstractRecord->save(false)
#9 /var/www/application/controllers/ItemsController.php(151): Omeka_Controller_AbstractActionController->addAction()
#10 /var/www/application/libraries/Zend/Controller/Action.php(516): ItemsController->addAction()
#11 /var/www/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('addAction')
#12 /var/www/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#13 /var/www/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#14 /var/www/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#15 /var/www/application/libraries/Omeka/Application.php(77): Zend_Application->run()
#16 /var/www/admin/index.php(28): Omeka_Application->run()
#17 {main}

@Daniel-KM
Copy link
Owner

Daniel-KM commented Mar 20, 2018

Hi,
Sorry, I forgot your message.
The plugin is designed for convert. Else you can modify directly the file libraries/FileModify/Preprocess.php.

@cyclingbatman
Copy link
Author

cyclingbatman commented Mar 23, 2018 via email

@cyclingbatman
Copy link
Author

As of now we have used your plugin with great success. Thank you for providing this feature.

We have been looking at Omeka S version to use on new sites. This watermark feature is something we would still like to continue to use but see it is not available as a module in Omeka S. I just wanted to let you know so if in the future you might think of adding to new version you would have some users that would use it.

@cyclingbatman
Copy link
Author

Would anyone have any idea if this could be updated by others or is copyrighted? Is it possible to pay to update this by the owner?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants