Skip to content

Working with image watermark in FileModify #1

Description

@cyclingbatman

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}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions