owncloud-archive / news

:newspaper: News app for ownCloud
GNU Affero General Public License v3.0
290 stars 106 forks source link

Add image item preview #984

Closed crazy-max closed 6 years ago

crazy-max commented 8 years ago

By parsing the <content> to find the first <img> or retrieve the <media:thumbnail> (for RSS media) we can display a preview of a RSS item like Feedly :

crazyws1

screenshot_2016-04-26-22-13-17

RSS 2 first image in content :

firstimage

RSS Media with media:thumbnail (youtube) :

mediathumb

BernhardPosselt commented 8 years ago

Good idea, should be added to picoFeed first and retrieved via $item->getThumbnail(). This should only be done for the however since this will cause issues when the first image is not a thumbnail (think of comics)

crazy-max commented 8 years ago

I think we need to retrieve the image link from picoFeed like you said but for media:thumbnail and the first picture in content. Then the method would be $item->getImage() In ownCloud News we can process picture exceeding a predefined size (64x64) using GD2 library and crop to square then resize for example ? Maybe this can involved performance issues ?

crazy-max commented 8 years ago

If there are no picture in the rss item, we can put a default picture like the ownCloud News logo ?

BernhardPosselt commented 8 years ago

I'd go for the following:

I see the main purpose for the thumbnail in adding a proper padding and @position to the first image.

crazy-max commented 8 years ago

Seems nice :)

crazy-max commented 7 years ago

Is this owncloud plugin not maintained anymore? Or merged to nextcloud?