2023-05-15 Attachment Weirdness

GAD

Reverential Morlock
Über-Morlock
Joined
Feb 11, 2009
Messages
23,073
Reaction score
18,726
Location
NJ (The nice part)
Guild Total
112
There is currently a problem uploading attachments and I don't know why. I've been working on it for two days but for some reason images that should absolutely be working are not. Smaller images work fine but larger ones are not even though the system appears configured to accept them.

Further updates as events warrant.
 

chazmo

Super Moderator
Gold Supporting
Joined
Nov 7, 2007
Messages
26,128
Reaction score
7,550
Location
Central Massachusetts
^ Thanks for looking at this @GAD ! So, this has nothing to do with the Acrobat file format that I thought were the cause of what I noticed? Just curious.
 

GAD

Reverential Morlock
Über-Morlock
Joined
Feb 11, 2009
Messages
23,073
Reaction score
18,726
Location
NJ (The nice part)
Guild Total
112
IMG_1611.jpg
 

GAD

Reverential Morlock
Über-Morlock
Joined
Feb 11, 2009
Messages
23,073
Reaction score
18,726
Location
NJ (The nice part)
Guild Total
112
So the image I posed above was dragged in as a 4032x2268 2.2MB .jpg file and it worked fine. The same file as a 2MB 1600x900 .png file failed, so there's some weirdness with file formats.
 

SFIV1967

Venerated Member
Joined
Nov 20, 2010
Messages
18,500
Reaction score
9,024
Location
Bavaria / Germany
Guild Total
8
The system for uploading stuff is "attachments", not "pictures". We just happen to use it mostly for pictures.
I get that, but the picture button does not allow to add a "PDF".

1684174862116.png 1684175029780.png

However with

1684174909455.png

I can attach a PDF document. Hence I was so confused what Chazmo was trying to achieve.

Ralf
 

GAD

Reverential Morlock
Über-Morlock
Joined
Feb 11, 2009
Messages
23,073
Reaction score
18,726
Location
NJ (The nice part)
Guild Total
112
OK, so the problem is PNG files. Sort of.

A couple of weeks ago I lowered the overall image size parameters to try and prevent the picture uploads from consuming all the disk space on my server. One of the things I changed was the max image size which I changed from 2 MB to 1.5 MB.

Now, some quirkiness about the system needs to be explained because it's, well... quirky.

That 1.5 MB file size is not the size of the file you can put on the system, but rather the size of the file *after* the system converts it for local storage. All images are compressed when they're put on the system and the file size after the system compresses needs to be under 1.5 MB or it will be rejected. That's what's happening here.

Those two pics of Nixie tubes look the same, but one was a 10 MB jpg and the other was a 2 MB PNG. The 10 MB JPG file uploaded fine but the smaller PNG file failed. Why? Because PNGs don't compress as well as jpgs. Here's how the system compressed those files:

10 MB JPG -> 172 KB
2 MB PNG -> 1.6 MB

Since I had set the limit at 1.5 MB, the PNG failed while the seemingly much larger JPG worked.

As for PDFs, the system doesn't compress them because they're not images (settle down, Ralf :) ) so when the PDFs in question were moved to the system they were rejected because they are 2.3 MB which is over the limit. It's not a good idea to use PDFs for images because any compression of the image was done while making it a PDF and the system can't deal with that.

The PNG thing is kind of a bummer because Mac screenshots are PNGs, but at the rate we all collectively upload images changing that limit from 1.5 MB to 2 MB has a pretty serious impact.
 

fronobulax

Bassist, GAD and the Hot Mess Mods
Joined
May 3, 2007
Messages
24,756
Reaction score
8,889
Location
Central Virginia, USA
Guild Total
5
The PNG thing is kind of a bummer because Mac screenshots are PNGs

Well you could add one more (manual) step:


:)

Both formats involve some compression but PNG uses lossless compression whereas JPG is lossy. Once upon a time the difference was important but as with music formats, many users will accept lossy formats if they are easier to use and store.
 

lungimsam

Senior Member
Joined
Oct 1, 2011
Messages
2,619
Reaction score
1,674
Guild Total
2
Zoey says it’s working fine for her.
 

Attachments

  • IMG_5490.jpeg
    IMG_5490.jpeg
    277.4 KB · Views: 57
Top