Hello!
I have big problem. On my website I have quite a lot of images in Phoca Gallery. Yesterday my host provider informed me, that he turn off my website, until I delete some of files, because I have about 50.000 !
Almost all of this are Thumbnail of Phoca gallery. I have noticed, that script automaticaly creates thumbnail in 3 different sizes (medium, large, small).
My question is: How can I set-up gallery to create only one size (for ex. medium) instead of three... There are to many unnecesary files...
Please help:)
Piotr
POLAND
To many of Thumbnails -> I have over 50.000 files...
-
pspyra
- Phoca Newbie

- Posts: 2
- Joined: 09 Mar 2015, 18:50
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: To many of Thumbnails -> I have over 50.000 files...
Hi, there is no such option as all the thumbnails are used. The thumbnails are here to save the server's memory and time. Because when the thumbnails are created, they don't need to be created dynamically. So in fact, without thumbnails your server will stop immediately as it will be not able to server all the dynamic thumbnails.
For now I don't understand what is the problem. Because mostly a space on server is not problem but the server memory, cpu and time is problem. So this is why Phoca Gallery and other galleries are done this way - save the CPU, memory and time and make the thumbnails because of it, becasue mostly on servers, there is "unlimited" space (space which is really hard to fill)
Jan
For now I don't understand what is the problem. Because mostly a space on server is not problem but the server memory, cpu and time is problem. So this is why Phoca Gallery and other galleries are done this way - save the CPU, memory and time and make the thumbnails because of it, becasue mostly on servers, there is "unlimited" space (space which is really hard to fill)
Jan
If you find Phoca extensions useful, please support the project
-
pspyra
- Phoca Newbie

- Posts: 2
- Joined: 09 Mar 2015, 18:50
Re: To many of Thumbnails -> I have over 50.000 files...
Hello Jan:)
I fully understand and agree Your point of view. My provider sadly does'nt understand our vision about the thubnail... I have just exceeded allowed number of files... So I'm kindly asking - can You give me some tips, how to modificate the code, to make only one thumbnail for each file?
I'll will be very gratefull:)
Piotr
I fully understand and agree Your point of view. My provider sadly does'nt understand our vision about the thubnail... I have just exceeded allowed number of files... So I'm kindly asking - can You give me some tips, how to modificate the code, to make only one thumbnail for each file?
I'll will be very gratefull:)
Piotr
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: To many of Thumbnails -> I have over 50.000 files...
Hi, this is not so easy as it seems. There are over 70.000 lines of code in the gallery and over e.g. 100 (200, ???) parts in the code which are somehow influenced by thumbnails settings - and it is really not possible to list all of them. And really not possible to give some clue advice what exactly needs to be changed (to not break other parts of system, etc. etc.
)
And in fact I have no idea how to do it other way (to protect the server) than using static thumbnails instead of dynamically creating of the thumbnails (which then will be completely different system with thousands of changes
)
Jan
And in fact I have no idea how to do it other way (to protect the server) than using static thumbnails instead of dynamically creating of the thumbnails (which then will be completely different system with thousands of changes
Jan
If you find Phoca extensions useful, please support the project