Summary: | Video files not properly put into Piwigo web-service. | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Aaron Williams <aaronw> |
Component: | Plugin-WebService-Piwigo | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | caulier.gilles, elacour, frederic.coiffier |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Aaron Williams
2005-01-18 04:36:18 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 ") 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. 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 *** Bug 257187 has been marked as a duplicate of this bug. *** |