Announcement

#1 2013-10-04 14:14:32

msakik
Translation Team
São Paulo, Brazil
2013-09-06
78

[resolved] Is there a way to know how much disk space the photos are consuming?

Hi, I was looking for a way to know the disk usage of photos and maybe the disk usage of cache files.

Offline

 

#2 2013-10-04 15:14:23

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [resolved] Is there a way to know how much disk space the photos are consuming?

Hi msakik,

The disk usage of photos would be easy to implement:

Code:

SELECT sum(filesize) from piwigo_images;

But the disk usage of cache files is not easy. If you're running on unix-like Piwigo could :

Code:

exec('du -sh _data')

but that would't work on Windows.

Offline

 

#3 2013-10-04 19:36:44

msakik
Translation Team
São Paulo, Brazil
2013-09-06
78

Re: [resolved] Is there a way to know how much disk space the photos are consuming?

Something may not be right.
I have run the sql from phpmyadmin and it returns

sum(filesize) = 12164796, that means 12 MB

When I run "du -csmh upload" it returns 4.5G

Am I doing something wrong?

Gallery folder is empty.

Offline

 

#4 2013-10-08 02:27:17

msakik
Translation Team
São Paulo, Brazil
2013-09-06
78

Re: [resolved] Is there a way to know how much disk space the photos are consuming?

Ok, filesize is in KB so it is 12 GB. But still not compatible with du. Investigating more ....

Offline

 

#5 2013-10-08 03:01:59

msakik
Translation Team
São Paulo, Brazil
2013-09-06
78

Re: [resolved] Is there a way to know how much disk space the photos are consuming?

digging more I found 3 photos where filesize is wrong at database, all of them uploaded on the same day. The record shows 2232876 Kb but in fact it is 2806 Kb. I have tried to reproduce with no success.

Offline

 

#6 2013-10-08 14:47:54

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [resolved] Is there a way to know how much disk space the photos are consuming?

Video files? (I've seen filesize error with [extension by xbgmsharp] piwigo-videojs)

Offline

 

#7 2013-10-08 15:05:09

msakik
Translation Team
São Paulo, Brazil
2013-09-06
78

Re: [resolved] Is there a way to know how much disk space the photos are consuming?

No, standard photos.  I have attempted with standard and flash upload and using upload plugin I have already installed but no success to reproduce this. I wondering if this information (based on database query) of photo disk usage could not be shown on admin summary page.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact