Attachment Improvements By Xon

xF2 Add-on Attachment Improvements By Xon 2.6.0

No permission to download
This addon is now available on https://atelieraphelion.com
  • Require StandardLib v1.18.0+
  • Fix typo 'Strip JPEG EXIF' option text
  • Fix "Allow inline display of SVG image attachments" option was not actually wired up as expected
  • Improve resizing of SVGs to avoid unexpected truncation
  • Improve handling of SVGs which might have been rejected due to formatting
  • Add "Only admins can upload SVGs as images" option
  • Add SVG support for XFRM icons
  • Only support range-requests for local files, not remote filesystems as the underlying library does not support determining if this is suppotred.
  • Ensure attachments SVGs are only served as images if it is known to be valid, and inline display of SVGs is permitted.
  • Remove non-implemented "Allowed Image Attachment File Extensions" option
  • Add "Allow inline display of SVG image attachments" option, defaults to off (breaking change)
  • Like
Reactions: BattleKing
  • Require XenForo 2.2+
  • Require php 7.2+
  • Improve drag&drop editor support. Thanks to @NamePros for sponsoring this feature.
    • Stock XenForo/Froala uses "move" which can result in unexpected content deletion.
    • Tint the active editor's boarder when dragging items over it, and show a file upload symbol over it.
  • Like
Reactions: BattleKing
  • Fix attempting to extract svg dimensions from <svg viewData> attribute
  • Like
Reactions: BattleKing
  • Fix error when rebuilding thumbnails ("Return value must be of the type string, null returned")
  • Like
Reactions: BattleKing
  • Installer now requires php 7+ & XenForo 2.1+
  • Add php7 type hinting
  • Add icon for options group
  • Force global namespace for functions which are known to be optimizable to bytecode in php
  • Improve extracting svg dimensions
  • Like
Reactions: BattleKing
  • Fix XFMG support (ie content stored in data rather than internal_data)
  • Support for video stream via partial content requests
  • Add "Partial content maximum chunk size" option
  • Like
Reactions: manfromva
  • Require XF2.1+, remove XF2.0 support
  • Fix "Call to a member function save() on null" when handing an invalid jpeg
  • Fix SVG thumbnail support for XF2.1 (for new attachments)
  • Fix "Error: Call to a member function save() on null" when handling Jpeg's without exif information
  • Fix compatibility issue with some 3rd party add-ons
  • Correctly set "Allowed Image Attachment File Extensions" type as string not boolean
Top