A A A
Forum Scope


Match



Forum Options



Min search length: 3 characters / Max search length: 84 characters
Forum Login
Lost password?
plugins-topic
File Uploader: Images different size after upload
Avatar
Steve Arnold
29 Posts
(Offline)
1
Oct 24, 2017 - 8:14 pm
Print

Hey there, 

Just wondering why the file size of images seems to change after they’re uploaded. Please see the following screenshots. Note, file before upload is 177kb, after upload its 117kb.

Before upload:

V6Wm91.jpgImage Enlarger

 

 

After upload: 

Image Enlarger

 

 

I thought this might have been related to JPEG quality, maybe SP was resizing based on the setting in my File Uploader config:

Image Enlarger

 

 

But I’ve tested multiple variations of higher/lower settings in the uploader and higher/lower JPEG quality of the files I’ve uploaded. If this was being caused by this setting, I’d expect images of JPEG quality lower than what’s configured in the above screenshot to NOT be resized, but it appears to be happening in all variations/instances.

Please can you shed any light on this?

Many thanks

Avatar
Mr Papa
Simi Valley, CA

19448 Posts
(Offline)
2
Oct 24, 2017 - 9:01 pm
Print

first, none of your images show for me – perhaps not uploaded properly?

multiple things here… first, you may be using different OS’es on your local computer and server… they may (and likely do) compute disk usage differently…  and can be fairly significant dependent on min block size of the  OS…

also, assume you are talking about full size images and not the thumbnails?

you sort of referenced it, but what are your settings on forum – components – file uploads??

Avatar
Steve Arnold
29 Posts
(Offline)
3
Oct 24, 2017 - 9:37 pm
Print

That’s weird, I used a site called snaggy to save my screenshots. I’ll save and upload them directly. 

V6Wm91.jpgImage EnlargerYGp5Li.jpgImage EnlargerQBbIM9.jpgImage Enlarger

 

Thanks for your reply. 

I did read about the operating system difference in another thread but I’m not convinced its that. 

Reason being, I created versions of the same image saved at jpeg quality 100, 90, 80, and 70

On my computer they varied in size with the largest being over 391kb, the smallest 131kb

I then uploaded them with the quality setting in the SP config at 80, then at 100. 

In every case, no matter what image I uploaded or setting was configured, the file size was reduced to between 110kb and 120kb

Attachments
Avatar
Yellow Swordfish
Glinton, England

16436 Posts
(Offline)
4
Oct 25, 2017 - 3:15 am
Print

I am gong to have to call on @Mr Papa to help and advise on the file size question as he has been much more involved in the uploader code than I have. But I am unsure on one point… Are you saying that image quality has been reduced even when set at 100…? Or is this just curiosity about the smaller file size?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Steve Arnold
29 Posts
(Offline)
5
Oct 25, 2017 - 7:47 pm
Print

It’s the file size reduction I’m querying. It suggests that the file is being processed somehow during upload, rather than just being uploaded. 

I can’t see the JPEG quality info in the exif data so I’m not sure if that’s what’s being changed specifically.

But in checking the EXIF of the uploaded versions of my images I can see that the upload process is also stripping out colour space information and the embedded colour profile. 

Is there any way to turn of any/all processing during upload, so it just uploads the file exactly as-is?

Thanks again

Avatar
Mr Papa
Simi Valley, CA

19448 Posts
(Offline)
6
Oct 25, 2017 - 8:34 pm
Print

if the file size is within the limits you provided via options, there is no additional processing…  only if the quality is to be reduced will any processing be applied…  

do you notice any image degradation? normally, even 10 or 20% would be noticeable…

Avatar
Steve Arnold
29 Posts
(Offline)
7
Oct 27, 2017 - 12:38 am
Print

The image(s) are within the limits set in the File Uploader settings.

The screenshots attached are from the File Uploader settings page, and from “Jeffreys Exif Viewer” website which I used to analyse the original image and the version I uploaded to my forum then downloaded again.

You’ll see how the file size in this example has been reduced and the colour space information has been stripped.

When it comes to comparing the actual image quality, it’s hard to tell. I can do some further testing but I’m certain that for whatever reason the file is being processed somewhere along the line. 

Cheers

Steve

ex1.jpgImage Enlarger

ex2.jpgImage Enlarger

Attachments
Avatar
Mr Papa
Simi Valley, CA

19448 Posts
(Offline)
8
Oct 28, 2017 - 3:36 pm
Print

afraid I dont really have any ideas…   I have in the past used the uploader and verified the file was untouched size wise…  perhaps the third party library (plupload) we use for uploading has changed how it operates as well..  now that back from business travel hope to try at test this weekend…

for grins, if you upload the image to your server via ftp, what is the file usage of the ftp uploaded file?

Forum Timezone: America/New_York
All RSSShow Stats
Administrators: Blues Dancer, Simple Press, SP Community Support
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 630
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Newest Members:
Gary Lee
Glen Stewart
Rodney Pacis
kent black
Robert Meharg
test test
narek amprachamian
Forum Stats:
Groups: 7
Forums: 17
Topics: 10065
Posts: 79362

 

Member Stats:
Guest Posters: 607
Members: 16922
Moderators: 0
Admins: 3

Most Users Ever Online
499
Currently Online
Guest(s)
12
Currently Browsing this Page

1 Guest(s)