• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Increase image file upload size cap

AsRock

TPU addict
Joined
Jun 23, 2007
Messages
18,874 (3.07/day)
Location
UK\USA
Processor AMD 3900X \ AMD 7700X
Motherboard ASRock AM4 X570 Pro 4 \ ASUS X670Xe TUF
Cooling D15
Memory Patriot 2x16GB PVS432G320C6K \ G.Skill Flare X5 F5-6000J3238F 2x16GB
Video Card(s) eVga GTX1060 SSC \ XFX RX 6950XT RX-695XATBD9
Storage Sammy 860, MX500, Sabrent Rocket 4 Sammy Evo 980 \ 1xSabrent Rocket 4+, Sammy 2x990 Pro
Display(s) Samsung 1080P \ LG 43UN700
Case Fractal Design Pop Air 2x140mm fans from Torrent \ Fractal Design Torrent 2 SilverStone FHP141x2
Audio Device(s) Yamaha RX-V677 \ Yamaha CX-830+Yamaha MX-630 Infinity RS4000\Paradigm P Studio 20, Blue Yeti
Power Supply Seasonic Prime TX-750 \ Corsair RM1000X Shift
Mouse Steelseries Sensei wireless \ Steelseries Sensei wireless
Keyboard Logitech K120 \ Wooting Two HE
Benchmark Scores Meh benchmarks.
Okay, first off, people need to learn to calm down. That includes the OP and everyone replying. I would consider this a very legitimate concern he raises and I'll explain why and what I would suggest to fix it to address all the concerns brought up.

I see three sides to this.
  1. OneMoar wants to upload bigger files. Generally speaking, most users are lazy so this is a valid concern from a usability standpoint. While I do believe there should be an upload limit, there should be a separate storage limit.
  2. Concern with bandwidth: I suspect that uploading images is a relatively small amount of bandwidth and that serving up said images is much more costly. So that would put emphasis on getting not putting if bandwidth is a concern.
  3. Storage, a very real concern because a lot of images adds up quickly which adds a need to efficiently store said images.
So my suggestion (assuming W1zz wanted to do this out of kindness of his heart,) is this:
  1. Increase upload limit to 10-20MB max.
  2. Institute a storage limit of 2-5MB max.
  3. Use PHP's GD library to convert uploaded images to JPEG or PNG.
    1. PNGs tend to look nicer than JPEGs, but use more space. Probably preferable for smaller images or images requiring transparency.
    2. JPEG tends to be very flexible when it comes to quality and the amount of compression. PHP's GD lib gives you control over this.
So long as the image is uploaded in a format GD can read which includes most commonly used formats, it may not be unrealistic to re-store it in a different format. It's also not unrealistic to use GD to scale the image as well.

I've used GD before and it's relatively easy to use and is relatively quick with respect to performance. I would be willing to write up some examples with respect to how to do it if it were welcomed.

Side note: I see a watermark, GD might be getting used already so this might not be a stretch if the CPU cycles are there to spare.

Limit each person to what they can upload ?, well that's terrible after time as posted pics end up deleted and leave useful threads with missing pictures.

Or did it misunderstand point number 2.
 
Joined
Oct 17, 2012
Messages
9,781 (2.33/day)
Location
Massachusetts
System Name Americas cure is the death of Social Justice & Political Correctness
Processor i7-11700K
Motherboard Asrock Z590 Extreme wifi 6E
Cooling Noctua NH-U12A
Memory 32GB Corsair RGB fancy boi 5000
Video Card(s) RTX 3090 Reference
Storage Samsung 970 Evo 1Tb + Samsung 970 Evo 500Gb
Display(s) Dell - 27" LED QHD G-SYNC x2
Case Fractal Design Meshify-C
Audio Device(s) on board
Power Supply Seasonic Focus+ Gold 1000 Watt
Mouse Logitech G502 spectrum
Keyboard AZIO MGK-1 RGB (Kaith Blue)
Software Win 10 Professional 64 bit
Benchmark Scores the MLGeesiest
TPU image uploader works MAYBE 3 out of 10 times for Me, and I'm @ 1200p, I can Only imagine what it's like with 4k. Im glad Someone mentioned this....I keep forgetting. I just went to imgur when it became too annoying, I'm certainly NOT going to compress/edit ANY images, FAR too lazy.

After reading MORE, i realized it was a hosting size issue... I'll just avoid using TPU's image service from Now on, not that I've ever used it much, but I have other places I can upload to, in an attempt to do my part, and not use bandwidth that is needed by others.
 
Last edited:

newtekie1

Semi-Retired Folder
Joined
Nov 22, 2005
Messages
28,472 (4.23/day)
Location
Indiana, USA
Processor Intel Core i7 10850K@5.2GHz
Motherboard AsRock Z470 Taichi
Cooling Corsair H115i Pro w/ Noctua NF-A14 Fans
Memory 32GB DDR4-3600
Video Card(s) RTX 2070 Super
Storage 500GB SX8200 Pro + 8TB with 1TB SSD Cache
Display(s) Acer Nitro VG280K 4K 28"
Case Fractal Design Define S
Audio Device(s) Onboard is good enough for me
Power Supply eVGA SuperNOVA 1000w G3
Software Windows 10 Pro x64
Use PHP's GD library to convert uploaded images to JPEG or PNG.

The uploaded image, when pasted directly into the text field as onemoar is doing, is already converted to PNG. So one option, as I pointed out already, is to convert the image to jpg instead.

Though it really takes 15 seconds to open Photoshop, create a new workspace, paste the image, save it for web, accept the default setting that it remembered, click to the desktop where you saved the pictures, copy it, and paste it in the text field. I literally just timed it, it takes 15 seconds on my laptop, including the time to load Photoshop... Stop being lazy.
 

rtwjunkie

PC Gaming Enthusiast
Supporter
Joined
Jul 25, 2008
Messages
13,909 (2.42/day)
Location
Louisiana -Laissez les bons temps rouler!
System Name Bayou Phantom
Processor Core i7-8700k 4.4Ghz @ 1.18v
Motherboard ASRock Z390 Phantom Gaming 6
Cooling All air: 2x140mm Fractal exhaust; 3x 140mm Cougar Intake; Enermax T40F Black CPU cooler
Memory 2x 16GB Mushkin Redline DDR-4 3200
Video Card(s) EVGA RTX 2080 Ti Xc
Storage 1x 500 MX500 SSD; 2x 6TB WD Black; 1x 4TB WD Black; 1x400GB VelRptr; 1x 4TB WD Blue storage (eSATA)
Display(s) HP 27q 27" IPS @ 2560 x 1440
Case Fractal Design Define R4 Black w/Titanium front -windowed
Audio Device(s) Soundblaster Z
Power Supply Seasonic X-850
Mouse Coolermaster Sentinel III (large palm grip!)
Keyboard Logitech G610 Orion mechanical (Cherry Brown switches)
Software Windows 10 Pro 64-bit (Start10 & Fences 3.0 installed)
The uploaded image, when pasted directly into the text field as onemoar is doing, is already converted to PNG. So one option, as I pointed out already, is to convert the image to jpg instead.

Though it really takes 15 seconds to open Photoshop, create a new workspace, paste the image, save it for web, accept the default setting that it remembered, click to the desktop where you saved the pictures, copy it, and paste it in the text field. I literally just timed it, it takes 15 seconds on my laptop, including the time to load Photoshop... Stop being lazy.
It's about 15 seconds to do a basic editing of a screenshot too with Paint.Net. I've been doing it the last 3 weeks for Witcher 3 screenshots. Not really a big deal for me in order to use TPU's free image hosting, which I am grateful to @W1zzard for.
 
Last edited:

dorsetknob

"YOUR RMA REQUEST IS CON-REFUSED"
Joined
Mar 17, 2005
Messages
9,105 (1.31/day)
Location
Dorset where else eh? >>> Thats ENGLAND<<<
Not really a big deal for me in order to use TPU's free image hosting, which I am grateful to W1zzard for.

Not enough people are thanking or are grateful to @W1zzard for the FREE HOSTING
they think its their GOD DAMMED right to have TPU host their Pictures

They need to remember "ITS A PRIVILEGE" that can be removed
 

Aquinus

Resident Wat-man
Joined
Jan 28, 2012
Messages
13,147 (2.94/day)
Location
Concord, NH, USA
System Name Apollo
Processor Intel Core i9 9880H
Motherboard Some proprietary Apple thing.
Memory 64GB DDR4-2667
Video Card(s) AMD Radeon Pro 5600M, 8GB HBM2
Storage 1TB Apple NVMe, 4TB External
Display(s) Laptop @ 3072x1920 + 2x LG 5k Ultrafine TB3 displays
Case MacBook Pro (16", 2019)
Audio Device(s) AirPods Pro, Sennheiser HD 380s w/ FIIO Alpen 2, or Logitech 2.1 Speakers
Power Supply 96w Power Adapter
Mouse Logitech MX Master 3
Keyboard Logitech G915, GL Clicky
Software MacOS 12.1
Limit each person to what they can upload ?, well that's terrible after time as posted pics end up deleted and leave useful threads with missing pictures.

Or did it misunderstand point number 2.
You misunderstood it. I simply was pointing out that bandwidth is going to be heavy on the serving side (getting the image,) not the receiving side (uploading the image). Nothing more so the upload size limit (aside from storage,) shouldn't really be a huge concern if we're talking 5-10MB over 2MB. Since serving it is important and small = better in that regard, converting everything to a JPEG would probably save on disk space and bandwidth while still allowing lazy people like @OneMoar to upload his big(ger) PNGs.
Not enough people are thanking or are grateful to @W1zzard for the FREE HOSTING
they think its their GOD DAMMED right to have TPU host their Pictures

They need to remember "ITS A PRIVILEGE" that can be removed
Calm down, OneMore is just an angry person but it's still legitimate question if you take away the general douchebaggery. You say it like no one appreciates what W1zz does when that's simply bull and I'm sure everyone here acknowledges that and I'm sure W1zz appreciates constructive criticism.
 
Joined
Aug 20, 2007
Messages
20,778 (3.41/day)
System Name Pioneer
Processor Ryzen R9 7950X
Motherboard GIGABYTE Aorus Elite X670 AX
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory 64GB (4x 16GB) G.Skill Flare X5 @ DDR5-6000 CL30
Video Card(s) XFX RX 7900 XTX Speedster Merc 310
Storage 2x Crucial P5 Plus 2TB PCIe 4.0 NVMe SSDs
Display(s) 55" LG 55" B9 OLED 4K Display
Case Thermaltake Core X31
Audio Device(s) TOSLINK->Schiit Modi MB->Asgard 2 DAC Amp->AKG Pro K712 Headphones or HDMI->B9 OLED
Power Supply FSP Hydro Ti Pro 850W
Mouse Logitech G305 Lightspeed Wireless
Keyboard WASD Code v3 with Cherry Green keyswitches + PBT DS keycaps
Software Gentoo Linux x64
its 2015 if you can't handle 5MB of attachments you can piss off'
if your argument against this is bandwidth then you have no argument

That's a horrible arguement and is why the internet is going towards a bandwidth crisis...

On the other hand, a simple "spoiler tag" fixes this nice and simple.
 
Joined
Jan 17, 2010
Messages
12,280 (2.36/day)
Location
Oregon
System Name Juliette // HTPC
Processor Intel i7 9700K // AMD Ryzen 5 5600G
Motherboard ASUS Prime Z390X-A // ASRock B550 ITX-AC
Cooling Noctua NH-U12 Black // Stock
Memory Corsair DDR4 3600 32gb //G.SKILL Trident Z Royal Series 16GB (2 x 8GB) 3600
Video Card(s) ASUS RTX4070 OC// GTX 1650
Storage Samsung 970 EVO NVMe 1Tb, Intel 665p Series M.2 2280 1TB // Samsung 1Tb SSD
Display(s) ASUS VP348QGL 34" Quad HD 3440 x 1440 // 55" LG 4K SK8000 Series
Case Seasonic SYNCRO Q7// Silverstone Granada GD05
Audio Device(s) Focusrite Scarlett 4i4 // HDMI to Samsung HW-R650 sound bar
Power Supply Seasonic SYNCRO 750 W // CORSAIR Vengeance 650M
Mouse Cooler Master MM710 53G
Keyboard Logitech 920-009300 G512 SE
Software Windows 10 Pro // Windows 10 Pro
Okay so did anyone even try TPU Capture?

Is has a high/Med/Low setting. Its two keys and capture/upload in one move. To easy Problem solved

You guys bicker like old ladies
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
27,045 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
So my suggestion (assuming W1zz wanted to do this out of kindness of his heart,) is this:
  1. Increase upload limit to 10-20MB max.
  2. Institute a storage limit of 2-5MB max.
  3. Use PHP's GD library to convert uploaded images to JPEG or PNG.
    1. PNGs tend to look nicer than JPEGs, but use more space. Probably preferable for smaller images or images requiring transparency.
    2. JPEG tends to be very flexible when it comes to quality and the amount of compression. PHP's GD lib gives you control over this.
So long as the image is uploaded in a format GD can read which includes most commonly used formats, it may not be unrealistic to re-store it in a different format. It's also not unrealistic to use GD to scale the image as well.
that's a good idea
 

dorsetknob

"YOUR RMA REQUEST IS CON-REFUSED"
Joined
Mar 17, 2005
Messages
9,105 (1.31/day)
Location
Dorset where else eh? >>> Thats ENGLAND<<<
@W1zzard
a suitable compromise you might consider for lazy people like onemoaner
why not introduce a 2 tier policy
1. FREE as it stands hosting for those that wish to abide by your current rules and conditions.

2. Monthly Suscription Fee (to be priced by yourself in due time) for those that want larger capacity

the revenue raised by those who want larger caps going to cover administration and server costs

Simple And eventualy Cost Effective solution for you.
Lets See who will put their money where their mouth spouts

Dorsetknob
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
27,045 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
it's not about cost. it's about supporting people with low bandwidth. for our kind of image hosting (forum targeted) there is no reason to allow such huge uploads
 

dorsetknob

"YOUR RMA REQUEST IS CON-REFUSED"
Joined
Mar 17, 2005
Messages
9,105 (1.31/day)
Location
Dorset where else eh? >>> Thats ENGLAND<<<
"" God has Spoken from the Mount "
it's not about cost. it's about supporting people with low bandwidth. for our kind of image hosting (forum targeted) there is no reason to allow such huge uploads

Can we now put this to Bed
 
Top