When decreasing image size, the disk space is not freed up

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

Post Reply
mkolici
Posts: 10
Joined: Mon Nov 05, 2012 9:28 am

When decreasing image size, the disk space is not freed up

Post by mkolici »

Hi,
I have a strange situation. I crop some images and I see that the size of the images are reduced significantly (~5-7 times). But the free size of the disk is decreased, in a time that I am expecting this size to be increased.
So I did this:
1. The free size of the disk before cropping was 8,784,351,232 bytes.
2. The total size of the images before cropping was 69,802,988 bytes (~66MB).
3. I performed cropping of the images
4. The total size of the images after cropping is 8,413,077 bytes (~8MB). So the size of images was decreased by ~58MB.
5. I check the total free size on the disk, it was decreased 8,781,025,280 bytes, the free size was decreased by 3MB instead of increasing by 58 MB.

To test further, I cropped in batch some thousand of images until the free size of the disk was 0 byte.
I have choose that the cropped files to be on the same directory and with the same name as the original, so cropped images are overwriting the originals.
Please help me to understand why the free space on the disk is not enlarged when I crop the images.

Thank you
Mikel.
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: When decreasing image size, the disk space is not freed

Post by xnview »

Strange problem, on windows?
Pierre.
mkolici
Posts: 10
Joined: Mon Nov 05, 2012 9:28 am

Re: When decreasing image size, the disk space is not freed

Post by mkolici »

Yes, both on Windows XP and on Windows Server!
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: When decreasing image size, the disk space is not freed

Post by xnview »

mkolici wrote:Yes, both on Windows XP and on Windows Server!
Even after reboot?
Pierre.
mkolici
Posts: 10
Joined: Mon Nov 05, 2012 9:28 am

Re: When decreasing image size, the disk space is not freed

Post by mkolici »

Hi Pierre,
Actually it has nothing related to reboot. I test it with a flash drive, I disconnect after cropping and reconnect again and the free space is not increased. Even after the reboot the space is not increased, as the reboot does nothing to the flash drive.

Thank you
Mikel.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: When decreasing image size, the disk space is not freed

Post by helmut »

@mkolici: The Windows recycle bin is empty, right?

@Pierre: When cropping, XnView does not create a backup image, does it?
Post Reply