https://github.com/swichers/drupal-max_image_size
This module will resize uploaded images to be below the set dimensions.
https://github.com/swichers/drupal-max_image_size
drupal drupal-7 drupal-module
Last synced: about 2 months ago
JSON representation
This module will resize uploaded images to be below the set dimensions.
- Host: GitHub
- URL: https://github.com/swichers/drupal-max_image_size
- Owner: swichers
- Created: 2016-03-01T19:57:16.000Z (over 10 years ago)
- Default Branch: 7.x-1.x
- Last Pushed: 2017-06-14T23:39:50.000Z (about 9 years ago)
- Last Synced: 2026-01-01T15:09:44.574Z (6 months ago)
- Topics: drupal, drupal-7, drupal-module
- Language: PHP
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This module will resize uploaded images to be below the set dimensions. It is
not an image style or other presentation layer module. If you want to maintain
the original image you should use
[Image Resize Filter](https://www.drupal.org/project/image_resize_filter) or an
image style. The use case for this module is sites where users may upload very
large images, but you do not want/need to keep the original.
This is different from the core image field size restrictions in that it will
work on already uploaded files and imported content.
## Related
These modules will allow you to adjust the size of the displayed image while
leaving the original untouched:
* [Image Resize Filter](https://www.drupal.org/project/image_resize_filter)
* [Imagecache](https://www.drupal.org/project/imagecache)
## Usage
Simply enable the module and it will begin resizing images when they are
uploaded. It will scan for images above the configured dimensions once a day and
queue them to be resized.
By default this module will resize images to be under 2560x1600. If you want to
change the dimensions it uses then you will need to update the module's
configuration. You can do this either through the interface, or by editing your
settings.php and setting the following:
```
```
### Drush
There are two drush commands available:
`drush misq`: Queue images to process.
`drush misp`: Process images.
You can get more help and information by typing `drush help `.