Skip to content

Conversation

@azul
Copy link
Contributor

@azul azul commented Jul 30, 2021

Summary:

Display relative Images without fileId in talk and collectives

Hand currentDirctory to Image plugin.
This approach is more reliable because it does not rely on the files app.
Therefor it also works in talk and collectives.
Fixes #1780.
We already know the current files path in the Editor.
Just need to pass it down like we do for the MenuBubble.

Display animated gifs

Use the currentDirectory to determine dav paths for gif files
and display the animated gif via dav rather than the preview
that lacks animation.

Support webp

Also display webp files with dav urls. Fixes #1655.

Signed-off-by: Azul [email protected]

@azul azul requested review from juliusknorr and mejo- and removed request for juliusknorr July 30, 2021 13:25
@azul
Copy link
Contributor Author

azul commented Jul 30, 2021

/compile amend /

updates:

  • that did not do anything. I guess i need permissions for that. Frankly I'm not sure why so many files were changed.
    I ran make clean and make build-js to prepare the commit.
  • I think i figured it out...make build-js-production

@azul azul force-pushed the azul/fix-relative-image branch 3 times, most recently from 284d612 to 14dafb2 Compare July 30, 2021 14:37
@szaimen szaimen added this to the Nextcloud 23 milestone Jul 31, 2021
@juliusknorr
Copy link
Member

@azul Mind to do a rebase :)

@azul azul force-pushed the azul/fix-relative-image branch from 14dafb2 to 7ac6dde Compare August 2, 2021 08:25
This approach is more reliable because it does not rely on the files app.
Therefor it also works in `talk` and `collectives`.
Fixes #1780.

Use the currentDirectory to determine dav paths for gif files
and display the animated gif via dav rather than the preview
that lacks animation.

Also display webp files with dav urls. Fixes #1655.

Signed-off-by: Azul <[email protected]>
@azul azul force-pushed the azul/fix-relative-image branch from 7ac6dde to 115bc0d Compare August 2, 2021 12:53
@azul azul merged commit e275140 into master Aug 2, 2021
@delete-merged-branch delete-merged-branch bot deleted the azul/fix-relative-image branch August 2, 2021 13:06
azul added a commit that referenced this pull request Nov 10, 2021
Preserve urls that start with `core/preview` no matter if `hasPreview` is in there or not.

Also do not add a duplicate `/` in dav urls.
`this.filePath` already starts with a `/`.

Add a test for dav paths and fix some others that were broken by #1800.
azul added a commit that referenced this pull request Nov 10, 2021
Preserve urls that start with `core/preview` no matter if `hasPreview` is in there or not.

Also do not add a duplicate `/` in dav urls.
`this.filePath` already starts with a `/`.

Add a test for dav paths and fix some others that were broken by #1800.
azul added a commit that referenced this pull request Nov 10, 2021
Preserve urls that start with `core/preview` no matter if `hasPreview` is in there or not.

Also do not add a duplicate `/` in dav urls.
`this.filePath` already starts with a `/`.

Add a test for dav paths and fix some others that were broken by #1800.

Signed-off-by: Azul <[email protected]>
azul added a commit that referenced this pull request Nov 10, 2021
Preserve urls that start with `core/preview` no matter if `hasPreview` is in there or not.

Also do not add a duplicate `/` in dav urls.
`this.filePath` already starts with a `/`.

Add a test for dav paths and fix some others that were broken by #1800.

Signed-off-by: Azul <[email protected]>
azul added a commit that referenced this pull request Nov 11, 2021
Preserve urls that start with `core/preview` no matter if `hasPreview` is in there or not.

Also do not add a duplicate `/` in dav urls.
`this.filePath` already starts with a `/`.

Add a test for dav paths and fix some others that were broken by #1800.

Signed-off-by: Azul <[email protected]>
backportbot-nextcloud bot pushed a commit that referenced this pull request Nov 11, 2021
Preserve urls that start with `core/preview` no matter if `hasPreview` is in there or not.

Also do not add a duplicate `/` in dav urls.
`this.filePath` already starts with a `/`.

Add a test for dav paths and fix some others that were broken by #1800.

Signed-off-by: Azul <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Images that have a relative url without fileId do not render ouside the files app View webp Pictures in Markdown Files

4 participants