1.6.6releasedField: Image Upload
A specialized filed for uploading images with min width/height and maximum width/height restrictions.
Clone URLhttps://github.com/DeuxHuitHuit/image_upload.git
Add as a submodulegit submodule add https://github.com/DeuxHuitHuit/image_upload.git extensions/image_upload --recursive
Compatibility
2.x.x | 2.1.x | 2.2.x | 2.3.x | 2.4.x | 2.5.x | 2.6.x | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.7.4 | 2.7.5 | 2.7.6 | 2.7.7 | 2.7.8 | 2.7.9 | 2.7.10 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1.0 | No | No | 1.3 | 1.6.6 | 1.6.6 | 1.6.6 | 1.6.6 | 1.6.6 | 1.6.6 | 1.6.6 | 1.6.6 | 1.6.6 | 1.6.6 | 1.6.6 | 1.6.6 | 1.6.6 | 1.6.6 |
Readme
Field: Image upload
Github repo: https://github.com/deuxhuithuit/image_upload
1 About
A specialized version of the classic Upload field for images:
- it accepts only images: bmp, jpg, jpeg, png, gif and svg.
- optional, set a minimum width and / or height. If 0 or empty, no minimum limit will exist.
- optional, set a maximum width and / or height. If 0 or empty, no maximum resize limit will exist.
- optional, it will create unique filenames.
NB: The resize takes places upon save, if needed, no matter new or edited entry.
NB 2: SVG support requires Symphony 2.6.3 or this commit.
2 Installation
- Upload the
image_upload
folder found in this archive to your Symphonyextensions
folder. - Enable it by selecting
Image upload
underSystem -> Extensions
, choose Enable from the with-selected menu, then click Apply. - You can now add
Image upload
field to your sections.
Version history
Symphony 2.4.x to 2.x.x
- Fixed parameters to match the parent method
- Removed the deprecated /e preg_match call
Symphony 2.4.x to 2.x.x
- Fixed some svg parsing problems
Symphony 2.4.x to 2.x.x
- Made resize = no by default (for new fields)
Symphony 2.4.x to 2.x.x
- Fixed French Translation
Symphony 2.4.x to 2.6.x
- Support DS output param + implemented prepareTextValue
Symphony 2.4.x to 2.6.x
- Bug fixes
Symphony 2.4.x to 2.6.x
- Symphony 2.6 compatibility
- Symphony 2.5 compatibility
- Added SVG support
Symphony 2.4.x only
- Minor UI fixes
Requires Symphony 2.4.x
- Symphony 2.4 compatibility
Requires Symphony 2.3.3
- Update for Symphony 2.3.2 release: Updating this extension will remove paths from the entries table. See https://github.com/symphonycms/symphony-2/issues/1719.
Symphony 2.3 to 2.3.2
- Make resize optional
- Added check on max values
Requires Symphony 2.3
- Prettified the table value.
Requires Symphony 2.3
- Update for Symphony 2.3.
- Use absolute path for image. Fixes #4.
- Fixed a bug where resize wouldn't take place if one max dimension was 0.
- Fixed a flaw in dimensions resize logic.
- Updates are now performed with error supression. No warnings will be issued.
Requires Symphony 2.0