This tutorial explains basic use of WordPress media uploader.
To add image sizes use
<?php add_image_size( $name, $width, $height, $crop ); ?>
Read more on this at Codex
http://codex.wordpress.org/Function_Reference/add_image_size
Related Posts:
- How to add image uploader to a custom widget?
- How Can I Add the “Insert From URL” Tab to a Custom 3.5 Media Uploader?
- Upload images to remote server
- How to delete resized (cropped) image uploads and prevent future resizing?
- Uploaded images don’t show in Media Library if there are special characters in IPTC Keywords
- Which filters or actions to use after a media upload and delete?
- How to register images uploaded via FTP in media library?
- Use Media upload in custom widget on wordpress 3.5
- Way to force media uploader use custom image size
- Create Image Uploader for Widget
- add_image_size creating lots of images (of various sizes)
- WordPress function: limit size, only jpg, jpeg, limit of uploaded files per account
- Uploading images to Media Library fails with Memory Exhausted
- Edit image preview is not displayed
- Uploading images: ‘ø’ get replaced with ‘ø’
- Image picker widget
- Adding a querystring to an image URL when clicking ‘insert into post’?
- Media library not loading after switching the main site of multisite
- WordPress won’t generate image sizes for certain images
- Different upload path per file type
- How to put Stack Exchange Flair as widget?
- Site icons with alpha channel for self-hosted WordPress blog network
- Can I stop wordpress generating media sizes
- HTTP Error when uploading files above 7mb unless using GD Image Editor
- wordpress media library shows empty images
- How to order images in a post in WordPress 3.3?
- Add Image Size for one Media Category Only
- Remove image height/width attributes from Image Widget
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- Is it possible to split Default WP Media directory to multiple Folder/Subdomain?
- How to upload WordPress Images to remote web server and display those images in WordPress gallery [closed]
- What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?
- How to select multiple media files for a widget form?
- Modify ‘Sizes’ Attribute for Images with Specific Class
- Images uploaded to the media library has strange colors. However, in the edit screen the color is ok
- Change media URL (images)
- WordPress Media Library showing wrong preview size?
- Upload multiple images and insert them into custom html code
- Uploaded images not displaying in network site
- Unable to upload images to the Media Library. Getting this erron on the console wp-admin/async-upload.php 403 (Forbidden)
- Original image not saving?
- Redirect to another page using contact form 7? [closed]
- Resize existing library images
- wp_get_attachment_image() not displaying post images even though wp_get_attachment_url() echo correct urls
- How to limit the number of images displayed in the media window?
- Images are not showing up in “Uploaded to this post”
- Create a post from every image in my media gallery
- Get images attached to a specific page
- Issue with images which have no sizes available
- Images don’t update after being edited
- Is there a way in WordPress to convert images to WebP without a plugin?
- Change Image folder Locations
- Some Images Disappeared from Media Library?
- How to change the value “uploaded to” in the media library (WordPress 4.0)
- links to Media Library content in sidebar per page
- Some problems in custom widget
- WordPress append -1 to the image name
- Is it possible to limit number of files a non-admin user can upload via the WordPress media library?
- Custom Image Widget
- Could creation of various image sizes cause slow form submission response?
- unsharp thumbnails after uploading image
- Images uploaded via Gutenberg image block are cropped
- How to handle a lot of media files in the uploads folder? (+10.000)
- Widget media uploader doesn’t opens after widget save
- Broken images in media library
- Images are not getting uploaded
- wp_enqueue_media(); in multiple widgets
- Redimension thumbnail crop without creating new images
- How to give a File Upload option in wordpress Widget backend?
- Assign one featured image to multiple posts?
- Missing Images in Uploads Directory (Server Only)
- Name Input from widget displays Sidebar name instead of saved data
- Broken Media Library
- Transfered live site to new server and images are not showing
- Limit files uploaded per folder
- My image rotate 90 degree
- How do I change a Themes Header Image?
- Media Library is not loading on grid view in admin panel
- Blurry Images WordPress 5.8.1
- My subdirectory sites images (except webP) are throwing to 404 page even they are exist
- What does WordPress media uploader do to image files on upload?
- Upload to a specific media folder created by FileBird Lite
- How do i manually place a widget code
- uploading files to the uploads folder via ftp
- Remove upload_files capability from a role but allow role to manage an avatar image
- /images/image.jpg not working in sidebar
- Creating a admin widget for /wp-admin/post.php?
- Include chat (HTML, js, css) in all pages of WordPress
- Combining media queries with image sizes
- Multilple single-use widgets with the same output callback
- How to display an RSS feed widget inside a page?
- How do I deactivate widgets by name?
- Large amount image data transfer
- Can’t display custom widget
- How to increase media image scale limit?
- Title not Emptying in a Widget
- Failed to load resource at admin screen
- Show or hide a widget from pages
- Author Link in Recent Posts Widget
- Custom widgets do not appear in dashboard > appearance > widgets