[image processing] ability for plugins to process any file type on upload #293

Closed
opened 2026-10-04 23:50:56 +02:00 by adam · 4 comments
Owner

Reported by wsloand on 22 Nov 2014 13:25

As is being discussed in the forum at http://piwigo.org/forum/viewtopic.php?pid=156306, I'm working on updates to allow raw file support and generalize the support for file upload. This feature request is to enable the discussion of code in a bit more detail (and allow upload of diffs for testing).

Additional information: The first diff uploaded is relative to the current trunk.

Currently, the parts that work are:

  • Upload of normal images (e.g. jpg, png, gif) works as expected
  • The pwg_representative file is created
  • The representative_ext is added to the database

The parts that don't yet work are:

  • The pwg_representative file doesn't show in the album view (just a gray exclamation point of an unsupported file)
  • After uploading the file, the upload image preview doesn't show up (shows as a broken image and when looking at the image in a different tab, it gets the ImageMagick error of "[Image] unsupported file extension")
  • Synchronization hooks supporting ftp upload are not yet built.

Piwigo Bugtracker #3182

**Reported by wsloand on 22 Nov 2014 13:25** As is being discussed in the forum at http://piwigo.org/forum/viewtopic.php?pid=156306, I&#039;m working on updates to allow raw file support and generalize the support for file upload. This feature request is to enable the discussion of code in a bit more detail (and allow upload of diffs for testing). **Additional information:** The first diff uploaded is relative to the current trunk. Currently, the parts that work are: - Upload of normal images (e.g. jpg, png, gif) works as expected - The pwg_representative file is created - The representative_ext is added to the database The parts that don&#039;t yet work are: - The pwg_representative file doesn&#039;t show in the album view (just a gray exclamation point of an unsupported file) - After uploading the file, the upload image preview doesn&#039;t show up (shows as a broken image and when looking at the image in a different tab, it gets the ImageMagick error of &quot;[Image] unsupported file extension&quot;) - Synchronization hooks supporting ftp upload are not yet built. [Piwigo Bugtracker #3182](http://piwigo.org/bugs/view.php?id=3182) <!-- github-sync-id:97226998 -->
adam closed this issue 2026-10-04 23:50:56 +02:00
Author
Owner

Comment posted by wsloand on 6 Dec 2014 23:52

Please review the upload_plugin_support.diff as a change relative to the current svn trunk for addition of raw support. It currently has only been integrated into the web form upload, but it should be relatively straight forward to integrate into synchronization and app uploads.

**Comment posted by wsloand on 6 Dec 2014 23:52** Please review the upload_plugin_support.diff as a change relative to the current svn trunk for addition of raw support. It currently has only been integrated into the web form upload, but it should be relatively straight forward to integrate into synchronization and app uploads. <!-- github-comment-id:124899109 -->
Author
Owner

Comment posted by wsloand on 11 May 2015 03:19

I uploaded a new diff matching the suggestion from mistic100 in http://piwigo.org/forum/viewtopic.php?id=24845&p=3

The new file is upload_plugin_support-20150510.diff

**Comment posted by wsloand on 11 May 2015 03:19** I uploaded a new diff matching the suggestion from mistic100 in http://piwigo.org/forum/viewtopic.php?id=24845&amp;p=3 The new file is upload_plugin_support-20150510.diff <!-- github-comment-id:124899121 -->
Author
Owner

Comment posted by wsloand on 28 May 2015 12:02

I forgot to add the representative_gen.php file to the last diff. Here it is now.

**Comment posted by wsloand on 28 May 2015 12:02** I forgot to add the representative_gen.php file to the last diff. Here it is now. <!-- github-comment-id:124899130 -->
Author
Owner

Hi wsloand, I have changed the request to be more the "ability to let plugins process any kind of file on upload". In Piwigo 2.8 you will easily add a plugin to handle RAW files.

Hi wsloand, I have changed the request to be more the "ability to let plugins process any kind of file on upload". In Piwigo 2.8 you will easily add a plugin to handle RAW files. <!-- github-comment-id:171598206 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#293