WiscWeb - File size uploads to Media Library
Media Library limitations
The Media Library in WiscWeb has a file upload size limit of 24 MB. If your file exceeds 24 MB in size, you will get an error.
Different file types
Images
When discussing images there are two things to consider.
- The image dimensions
- The file size (number of kilobytes)
WordPress generates a variety of different sizes that are both different dimensions and file sizes for images after you upload one to the Media Library. These generated image files are used in different locations in the UW Theme and provide responsive images for different screen sizes. The files that WordPress produces are optimized in size (kilobytes) for faster loading web pages.
Because of this, you can upload a larger size image to the Media Library, but should ensure that reduced-size images are shown on your website.
Example
If you upload an image that is 2.5 megabytes and choose to display the “Large” version on your page, your site visitor may only see an image that is 135 kilobytes and will load much faster than if you display the original “Full Size” image.
Guidelines
- Keep image uploads below 3 MB
- Do not use “Full Size” to display your large file size images unless your image has been optimized for the web (saved as a smaller file size)
How can you save a photo as a smaller file size?
- Save image as an optimized version using Photoshop (see WiscWeb - Reducing File Size of an Image in Photoshop)
- Use an application such as Squoosh to compress your image
Videos
- Videos should never be hosted in the Media Library.
- You are encouraged to use YouTube, Vimeo, or Kaltura for video hosting.
PDFs
- While it is possible to upload PDFs to the Media Library, we recommend that you host these files on Box.
- Note: There are several benefits to hosting PDFs on Box. See WiscWeb - Why we recommend UW Box for file storage for more details.
See Also
- WiscWeb - Using Media Library to add images or documents
- WiscWeb - Image sizing recommendations in the UW Theme
- WiscWeb - Using Photoshop to Crop Images
- WiscWeb - Why we recommend UW Box for file storage
- UW-Madison Box - Support Overview
- WiscWeb - HTTP error in Media Library
- WiscWeb - Unexpected Response from Server Error
- WiscWeb - Reducing File Size of an Image in Photoshop