NatePiVision
Posts: 72
Joined: Fri Apr 29, 2016 5:38 am
Location: Pittsburgh
Contact: Website

Attach file limit of 64kB?

Sun Mar 05, 2017 3:12 pm

Do I need to do anything to permit attaching larger files? 64kB makes it nearly impossible to attach a photo.
Current Pi based projects:
https://github.com/nategreco/DAPrototype - Advanced Driver Assist System (ADAS)
https://github.com/nategreco/StereoVisionTest - Stereo vision (CM3) test setup

Videos:
https://youtu.be/WRAR0lgYsj8
https://youtu.be/SyvCJLRw1UQ

User avatar
DougieLawson
Posts: 35542
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Attach file limit of 64kB?

Sun Mar 05, 2017 3:13 pm

NatePiVision wrote:Do I need to do anything to permit attaching larger files? 64kB makes it nearly impossible to attach a photo.
Stick the photo on http://imgur.com post the link on here. It will even give you the BBCode you need on Imgur.
Note: Having anything remotely humorous in your signature is completely banned on this forum. Wear a tinfoil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 12020
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Attach file limit of 64kB?

Sun Mar 05, 2017 3:18 pm

upload your picture to a remote site, and post the link to it here with

Code: Select all

[img][/img]
tags around it.
example:
Image
it also helps if you put

Code: Select all

[size=200][/size]
tags around your picture, otherwise they will be shrinked in size. (same picture):
Image


finally if you right click on a picture and choose "open in new window" (or something similar) you can see the full size of the picture.

Also pictures do not have to be > 64KB, if you use the correct image type, compression type and color range.

for example this embedded schematic is just 33K!

default version:
zx1541v003.png
zx1541v003.png (31.24 KiB) Viewed 1735 times
resized version:
[attachment=0]zx1541v003.png[/attachment] Try opening it in a new window!


So simply try to keep your picture sizes low.

Heater
Posts: 12969
Joined: Tue Jul 17, 2012 3:02 pm

Re: Attach file limit of 64kB?

Sun Mar 05, 2017 5:50 pm

What stops you reducing the size and quality of your photo to 64K?

I find that for a typical forum post picture a 64K jpg is quite good enough.

A tool like gimp can do this easily.

NatePiVision
Posts: 72
Joined: Fri Apr 29, 2016 5:38 am
Location: Pittsburgh
Contact: Website

Re: Attach file limit of 64kB?

Tue Mar 07, 2017 5:10 pm

OK, fair enough. I just thought 64 kb was pretty darn small and maybe there was something I needed to do to increase the size I was permitted to post. Looks like I"ll be getting an imgur account or something similar.

Thanks
Current Pi based projects:
https://github.com/nategreco/DAPrototype - Advanced Driver Assist System (ADAS)
https://github.com/nategreco/StereoVisionTest - Stereo vision (CM3) test setup

Videos:
https://youtu.be/WRAR0lgYsj8
https://youtu.be/SyvCJLRw1UQ

Heater
Posts: 12969
Joined: Tue Jul 17, 2012 3:02 pm

Re: Attach file limit of 64kB?

Tue Mar 07, 2017 8:24 pm

NatePiVision,

The thing is....if I could post any random snap from my machine here it could quite easily be 8 MegaBytes or so.

That is a disaster for anyone viewing the forum on a mobile connection.

Often that 8MB can be reduced to 64K or so without losing any information pertinent to my post.

All in all, huge images are a waste of bandwidth, annoy everybody due to the download speed, and often expense.

And all that crap has to be stored somewhere on the server.

By the way, 64KBytes is 32 times more than the total memory space of the first computers I programmed!

User avatar
DougieLawson
Posts: 35542
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Attach file limit of 64kB?

Tue Mar 07, 2017 8:35 pm

Heater wrote:NatePiVision,

The thing is....if I could post any random snap from my machine here it could quite easily be 8 MegaBytes or so.

That is a disaster for anyone viewing the forum on a mobile connection.
Are you kidding? A 4G phone runs data at about twice the rate that my wired VDSL2 circuit gets and that's with fibre from the cabinet to the exchange.

The days of shrinking images and converting things to GIF fell into ancient history when we stopped dialling up to BBS services.
Note: Having anything remotely humorous in your signature is completely banned on this forum. Wear a tinfoil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Heater
Posts: 12969
Joined: Tue Jul 17, 2012 3:02 pm

Re: Attach file limit of 64kB?

Tue Mar 07, 2017 10:53 pm

Dougie,
Are you kidding? A 4G phone runs data...
No. Not kidding at all. Around here my 3G phone is slow enough.

When I go 500km from Helsinki to the forrest it is touch and go if I get it to work at all.

Then there are the few billions of people around the world whose mobile connections are not so fast.

Then there are the millions of Americans still living with data caps on their phone usage.

The days of shrinking images may be over, mostly because people don't know or care about the problems it causes for others.

Still, if that is not a problem for you, why should you worry?

drgeoff
Posts: 9606
Joined: Wed Jan 25, 2012 6:39 pm

Re: Attach file limit of 64kB?

Wed Mar 08, 2017 5:24 pm

Heater wrote: Then there are the millions of Americans still living with data caps on their phone usage
Data caps are alive and well in many other parts of the world. (Including the bit that Dougie lives in.)

User avatar
DavidS
Posts: 4334
Joined: Thu Dec 15, 2011 6:39 am
Location: USA
Contact: Website

Re: Attach file limit of 64kB?

Mon Mar 13, 2017 3:55 am

KISS.

I can not think of many photos that would take more than about 30KB in GIF format. So keep it simple, convert to GIF and keep your resolution under 1024x768 pixels (if you need more than that for a good reason split it into multiple images).
RPi = The best ARM based RISC OS computer around
More than 95% of posts made from RISC OS on RPi 1B/1B+ computers. Most of the rest from RISC OS on RPi 2B/3B/3B+ computers

User avatar
Gerd
Posts: 66
Joined: Wed Mar 16, 2016 10:48 am
Location: Europe

Re: Attach file limit of 64kB?

Mon Mar 13, 2017 12:55 pm

@mahjongg: I think you missed one important last step: Run the image through an optimizer. Please find attached a copy of your schematics with IDENTICAL picture information (i.e. lossless further compression) but 13,8% smaller filesize.[attachment=0]zx1541v003 - Kopie.png[/attachment]Optimizing your fishtank example yields a 7,8% saving in filesize, again lossless. (not attached).

@Dougie
The days of shrinking images and converting things to GIF fell into ancient history when we stopped dialling up to BBS services.
But image compression (lossless or lossy) ist still in active devlopment. I think of googles brotli, zopfli and recently RAISR and of facebooks PAQ, where fb exchanges the Huffmann encoding in JPG.

@DavidS
I most respectfully have to disagree. Times have changed. Nowadays you shall use GIF only for small animations and replace GIF with PNG in your toolchain for all other cases you used GIF before.
The format is more flexible and produces smaller filesizes. So show me any GIF (not an animation) and I'll make a PNG out of it with identical picture information but smaller filesize.

edit:typos
Attachments
zx1541v003 - Kopie.png
zx1541v003 - Kopie.png (26.93 KiB) Viewed 1275 times

Return to “Off topic discussion”