2022-11-07 Fred Gleason <fredg@paravelsystems.com>

* Added a dependency for ImageMagick's 'Magick++' library interface.
	* Added a 'FEED_IMAGES.DATA_MID_THUMB' field to the database.
	* Added a 'FEED_IMAGES.DATA_SMALL_THUMB' field to the database.
	* Incremented the database version to 365.
	* Optimized loading of thumbnail image data in rdadmin(1),
	rdcastmanager(1) and rdcatch(1).
	* Re-enabled uploads to RSS feeds in rdcatch(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-11-07 16:52:13 -05:00
parent c9c64757ae
commit 4a3454cb8d
66 changed files with 323 additions and 184 deletions

View File

@@ -538,7 +538,7 @@ void RecordListModel::updateModel(const QString &filter_sql)
d_feed_images.clear();
sql=QString("select ")+
"`ID`,"+ // 00
"`DATA` "+ // 01
"`DATA_SMALL_THUMB` "+ // 01
"from `FEED_IMAGES`";
q=new RDSqlQuery(sql);
while(q->next()) {
@@ -546,9 +546,13 @@ void RecordListModel::updateModel(const QString &filter_sql)
d_feed_images[q->value(0).toUInt()]=QVariant();
}
else {
/*
d_feed_images[q->value(0).toUInt()]=
QImage::fromData(q->value(1).toByteArray()).
scaled(22,22,Qt::IgnoreAspectRatio,Qt::SmoothTransformation);
*/
d_feed_images[q->value(0).toUInt()]=
QImage::fromData(q->value(1).toByteArray());
}
}
delete q;