Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portrait Images not displaying #4250

Closed
POpus opened this issue Mar 28, 2024 · 1 comment
Closed

Portrait Images not displaying #4250

POpus opened this issue Mar 28, 2024 · 1 comment

Comments

@POpus
Copy link

POpus commented Mar 28, 2024

The problem

I just moved my Wiki to a new server and noticed that imported images that are in portrait mode from my phone are not displayed. Tried importing a new file to rule out moving the data was the issue, and same result; landscape OK, portrait broken.

Tried both Vivaldi and Firefox

Error from log:
2024-03-28 20:47:54 /var/www/cabwiki/vendor/splitbrain/slika/src/GdAdapter.php(96) ArgumentCountError: imagerotate() expects exactly 3 arguments, 4 given
#0 /var/www/cabwiki/vendor/splitbrain/slika/src/GdAdapter.php(96): imagerotate()
#1 /var/www/cabwiki/vendor/splitbrain/slika/src/GdAdapter.php(69): splitbrain\slika\GdAdapter->rotate()
#2 /var/www/cabwiki/inc/media.php(1799): splitbrain\slika\GdAdapter->autorotate()
#3 /var/www/cabwiki/inc/media.php(1841): media_mod_image()
#4 /var/www/cabwiki/lib/exe/fetch.php(102): media_crop_image()
#5 {main}

My PHP version on the new server is 8.3.4 , old is 8.0.30

Found this in the PHP:imagerotate documentation:
8.3.0 The unused ignore_transparent has been completely removed.

Must be the problem....

Version of DokuWiki

2024-02-06a "Kaos"

PHP Version

8.3.0

Webserver and version of webserver

Apache 2.4 on Ubuntu Server

Browser and version of browser, operating system running browser

Vivaldi/Firefox on LinuxMint

Additional environment information

No response

Relevant logs and/or error messages

No response

@POpus POpus added the Bug label Mar 28, 2024
@mprins
Copy link
Contributor

mprins commented Mar 29, 2024

please report to Slika at https://github.com/splitbrain/slika/issues preferably with a sample image for a testcase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants