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




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

  1. Upload the image_upload folder found in this archive to your Symphony extensions folder.
  2. Enable it by selecting Image upload under System -> Extensions, choose Enable from the with-selected menu, then click Apply.
  3. 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

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