Have you considered using a client-side jquery plugin such as:
http://almogbaku.github.io/imageMask/
That way you’re not generating more images than you have to.
Related Posts:
- How to generate thumbnails when needed only?
- No Thumbnails Generated
- How to Require a Minimum Image Dimension for Uploading?
- How does WP media uploader create the 3 different sized images, and how can I duplicate it
- Reject upload of wrong-sized images using the Media Uploader
- Create image formats with different qualities when uploading
- Which filters or actions to use after a media upload and delete?
- PNG with transparent background turns black when uploaded and resized
- Settings in ‘Media > Settings’ is ignored when inserting images
- There’s a way to scale media (images) at 50%?
- How to prevent upload of a multiple sizes of images
- How can I prevent uploading bmp image?
- Impose a Maximum Limit on Image height and width upload size
- Force wordpress to see uploads folder media
- Convert uploaded PNG to JPEG automatically
- add_image_size creating lots of images (of various sizes)
- resize images not crop
- Add suffix to filename of uploaded images
- How to link to the image editor’s Edit Image function?
- Regenerate thumbnails after upload
- Front-end Image Upload with Preview – Is this Possible in WP?
- WordPress won’t generate image sizes for certain images
- Thumbnails produce unwanted gray pixels on white background [closed]
- Site icons with alpha channel for self-hosted WordPress blog network
- How can I receive the image id using the media box?
- Can I stop wordpress generating media sizes
- add_image_size() and uploading the exact size leaves 1×1 image in uploads
- WordPress Fancybox Resize Large Image
- Error uploading images (but the images are at the server!)
- How to generate thumbnails when needed only?
- WordPress Media Library showing wrong preview size?
- add_image_size adds size, but doesn’t upload if source resolution is same as resize resolution
- Original image not saving?
- Resize existing library images
- Large image upload size (using timthumb.php
- Image resizing – TimThumb vs convert on upload?
- WordPress Bug on IIS ? Problem when uploading image on IIS 7
- When does WP resize an image file
- Stop image resizing in particular case – is that possible?
- Issue with images which have no sizes available
- How to resize attachement
- Best way to receive special images in posts
- Resize uploaded original images to a minimum automatically
- Dynamically determine the width and height of a image file to be cropped & uploaded AFTER form submission given fixed aspect ratio
- Control resizing of uploaded images
- Images uploaded via Gutenberg image block are cropped
- Set default “Link CSS Class” in add media admin editor
- Images not aligning correctly
- Redimension thumbnail crop without creating new images
- get the post thumbnail returns the full size
- WordPress Image Resize fails without Error Message
- How to force attachment size for every post
- what happens to existing media files when I switch to year/month directory structure format?
- Image upload callback in new 3.5 media
- What might cause a POST to wp-admin/async-upload.php to return JSON >and< HTML?
- Media Uploader: get deleted files
- Alter media caption/description conflict in WordPress?
- Debugging upload problem: What part of WP does actual image-resizing?
- Rename attachments during upload
- Why “Store uploads in this folder” option is not showing in Media Settings in WordPress
- Allowing .exe uploads (old WPSE posts no longer work)
- Prevent renaming of uploaded media
- Is it safe to delete uploaded photos if Photon (Jetpack) is activated?
- How do I get allowed Media Library upload file extension list?
- Multiple images with Media Uploader on front-end
- Use the WP media uploader dialog for uploading a form attachment (non-admin). Offering progress and drag and drop feedback
- using wp_insert_attachment() results in guids with file names different to the same file when uploaded via media page in admin
- Separate Uploads folder on other server
- Create custom fields as image uploads [duplicate]
- upload_mimes not accepting CSV
- Receiving 404 when uploading file larger than 10kb
- Show image crop window on image upload
- making media URL secured
- Is it safe to allow non-admin users access to media uploader
- frontend image post uploader
- WYSIWYG editor with image upload for “Normal Users” [closed]
- Upload multiple images and insert them into custom html code
- Set Maximum Width for an uploaded image
- Uploaded images not displaying in network site
- why can’t upload deb package in my wordpress?
- Easing the download of a regularly uploaded pdf
- Upload media only to DB
- upload_max_filesize in .user.ini Not Reflected in Media Upload
- WordPress Creates Unused (Unregistered) Image Sizes
- Is it possible to import all files from a uploads DIR into WP media, retaining paths to the files
- HTTP error when uploading an image
- Embed HTML5 files/subfolders in post?
- How to change archieve frequency of the media file in uploads folder for wordpress blog
- image URL changed in wordpress
- Import media (.xml) does not attribute featured images to posts
- Modify Maximum upload file size text in WordPress Media
- Updated wordpress missing image upload area
- Sanitizing existing media library paths and page links from foreign characters
- How to change default upload dir?
- How could you allow users to upload a video in within their profile and display it on a wordpress site?
- restrict uploaded image size and fixed image display size
- Limit attachment caption characters
- WAMP install acts different than live install when uploading images
- Password protected uploaded PDF page
- Media Gallery doesn’t show (using WP-Read Only)