Media links lost on migration

#1

Hi!
I’m a bit confused on how the media are handled in the new Kirby…
When moving the media and content folders from one instal (online) to another (local), I seem to have lost all links to the images…
What am I missing here?
Thank you!

0 Likes

#2

There is no need to move the media folder, all the files are recreated anyway.

0 Likes

#3

Well if I erase what’s in the media folder, I lose all the images as well…
What am I doing wrong?
Thank you @texnixe

0 Likes

#4

No, all images are in your content folder and moved to the media folder. The same will happen again, i.e. files moved again from content to media folder.

Maybe it is some sort of caching problem, not sure, but as I said, everything will be recreated.

0 Likes

#5

The media folder is like a cache. It gets generated from the media in your content folders. You shouldn’t put things directly in the media folder.

0 Likes

#6

OK my bad.
I was using running the local website the old way without kirby/router.php.
old habits…
Thanks for coping with me…

0 Likes

#7

Maybe create a nice alias for that? run kirby or something like that…

0 Likes

#8

I’m having some trouble with the media folder. I’ve changed a “resize” parameter to 80, and it seems like none of the images have been updated. When I look at the image size on my local machine, it’s like 300-400k, but online, each image is like 3 or 4 megabytes. When I download an image, the url has the dimensions and the quality in the filename as it should, but it’s still the full size 100% quality image. Any idea what’s going on?

http://li1116-113.members.linode.com/levonbiss/projects/sport

local machine:
54%20PM
file generated online:

0 Likes

#9

Have you pushed the media folder from local to the server?

0 Likes

#10

I did, but then I deleted the whole thing. this is after it has been regenerated.

0 Likes

#11

I know I was having trouble with file permissions, but I think I fixed that. Not sure if it’s related… I know also that it takes two page loads for the images to show up at all, even really small ones in the panel.

0 Likes

#12

Do thumbnails actually get generated at all?

0 Likes

#14

I didn’t have gd installed. that will do it. :sob: These are the dangers of starting from scratch with linode, kids.

0 Likes