Bug 97298 - Video files not properly put into Piwigo web-service.
Summary: Video files not properly put into Piwigo web-service.
Status: REOPENED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Piwigo (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
: 257187 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-18 04:36 UTC by Aaron Williams
Modified: 2023-02-25 13:55 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Williams 2005-01-18 04:36:18 UTC
Version:           0.7 (using KDE 3.3.2 Level "a" , SUSE 9.2 UNSUPPORTED)
Compiler:          gcc version 3.3.4 (pre 3.3.5 20040809)
OS:                Linux (i686) release 2.6.8-24.10-athlon-preempt

When I export an album to HTML it does not transfer the AVI files or properly create thumbnails or HTML for them.  In fact, the avi files are not transferred at all and Konqueror just shows a broken link.
Comment 1 Renchi Raju 2005-01-18 18:59:05 UTC
CVS commit by pahlibar: 


enable uploading for movie (and other non-image files) to gallery
BUG: 97298


  M +10 -8     gallerytalker.cpp   1.6
  M +9 -4      gallerywindow.cpp   1.10


--- kdeextragear-libs-1/kipi-plugins/galleryexport/gallerytalker.cpp  #1.5:1.6
@@ -194,7 +194,8 @@ bool GalleryTalker::addPhoto( const QStr
 
     QImage image(photoPath);
-    if (image.isNull())
-        return false;
 
+    if (!image.isNull())
+    {
+        // image file - see if we need to rescale it
     if (rescale && (image.width() > maxDim || image.height() > maxDim))
     {
@@ -205,4 +206,5 @@ bool GalleryTalker::addPhoto( const QStr
                   << path << endl;
     }
+    }
     
     if (!form.addFile(path))

--- kdeextragear-libs-1/kipi-plugins/galleryexport/gallerywindow.cpp  #1.9:1.10
@@ -569,8 +569,13 @@ void GalleryWindow::slotAddPhotoNext()
     m_uploadQueue.pop_front();
 
-    m_talker->addPhoto( m_lastSelectedAlbum, pathComments.first,
+    bool res = m_talker->addPhoto( m_lastSelectedAlbum, pathComments.first,
                         pathComments.second,
                         m_resizeCheckBox->isChecked(),
                         m_dimensionSpinBox->value() );
+    if (!res)
+    {
+        slotAddPhotoFailed( "" );
+        return;
+    }
     
     m_progressDlg->setLabelText( i18n("Uploading file %1 ")


Comment 2 Renchi Raju 2005-01-18 19:01:42 UTC
the thumbnails are generated on the gallery itself. gallery1, i believe, cannot generate thumbnails for movie files. gallery2, with ffmpeg, does; but we don't support gallery2 yet.
Comment 3 caulier.gilles 2023-02-25 13:54:36 UTC
Hi Frédéric,

Do you know what's the goal to upload video in a remote Piwigo Gallerie ? I tried with MP4 (listed as supported file in Piwigo doc), but the plugin return an error as not recognized mime type.

Best regard 

Gilles Caulier
Comment 4 caulier.gilles 2023-02-25 13:55:13 UTC
*** Bug 257187 has been marked as a duplicate of this bug. ***