Media links lost on migration

Ok, but what does phpinfo() say about gd?

The same as before.

If you temporarily enable the debug option in your config, and then copy this url into the browser’s address bar, what does it say:

https://swift4data.com/media/pages/home/0776be5e88-1770884686/fast_forward_swift_left.webp

It gives me a full report on “Whoops\Exception\ErrorException thrown with message “imagecreatefromstring(): gd-png: libpng warning: iCCP: known incorrect sRGB profile”

Ok, then there seems to be a problem with the embedded image profiles which somehow might interfere with image converting. Which is in line with some images working fine while others don’t.

Hooray! Thanks a lot for your support, @texnixe . With the help of your comments and after some further digging I was able to solve the problem.

[ISSUE] PNG files with embedded sRGB profiles that caused problems.
[SOLUTION] Strip all PNG files off their meta data (incl. sRGB profiles), delete /media and /site/cache –> visit the website again and thanks to Kirby everything has been perfectly rebuilt.

Here is how I did it:

  1. Connected to the server via SSH
  2. Used: find content -name "*.png" -type f -exec mogrify -strip {} \; To find all the PNG files in content (and later in the entire website folder - there were some in the plugins folder that caused problems as well)
  3. Used: find content -name "*.png" -type f -exec chmod 644 {} \; to fix the file permissions.
  4. Deleted /media/ and /site/cache/.

Et voilá!