Release Notes

1.7.12

🐛 Bug Fixes

  • script: now properly detects shadow roots

1.7.11

🚀 Features

  • admin: removes watermark modes none and tile
  • admin: removes watermark dpr property
  • api: deprecates dpr transformation
  • api: adds debug transformation
  • script: adds debug mode

🐛 Bug Fixes

  • script: step now limits upscales to 10% which enhances visuals for smaller images

1.7.9

🐛 Bug Fixes

  • script: stops using IntersectionObserver on browsers that implement it poorly

1.7.8

🐛 Bug Fixes

  • api: ensures fallbacks are not kept in the CDN for more than 30 minutes

1.7.7

🐛 Bug Fixes

  • api: flip and turn should no longer create stretched results

1.7.6

🚀 Features

  • script: adds data-twic-bot as an alternative to data-twic-transform for Google and Bing bots
  • script: adds path configuration so that prepending srcs for an entire page is not a chore anymore

1.7.5

🐛 Bug Fixes

  • admin/api: fixes a bug in format handling when a default manipulation was set

1.7.4

🚀 Features

  • admin: video can be enabled on a path basis
  • api: adds image output so that extracting an image from a video can leverage webp support detection

🐛 Bug Fixes

  • api: fixes an issue where image with transparent background could be slightly degraded
  • api: fixes refit syntax so as to be compatible with attribute splitting
  • api: turn=left and turn=right were inadvertendly switched
  • script: ensures multiple values in data-twic-focus, data-twic-step and data-twic-transform do not break srcs and posters

1.7.3

🐛 Bug Fixes

  • api: fixes meancolor output
  • api: properly issues a 403 response rather than a 500 response when a bad token was used
  • script: fixes a bug in Safari with image elements that had a title attribute

1.7.2

🐛 Bug Fixes

  • api: exif orientation was not properly taken into account when resizing

1.7.0

🚀 Features

  • api: adds video src handling
  • api: adds flip and turn transformations

1.6.20

🐛 Bug Fixes

  • script: fixes a bug in older Safaris when CSS returned auto as a size

1.6.19

🚀 Features

  • api: adds refit transformation

🐛 Bug Fixes

  • script: fixes flickering issues (image changing size continously)

1.6.18

🚀 Features

  • api: adds support for video element poster attribute using data-twic-poster-* attributes
  • api: adds generic attributes shared amongst src, background and poster: data-twic-focus, data-twic-step and data-twic-transform

1.6.16

🚀 Features

  • api: adds maincolor, meancolor and preview outputs

1.6.15

🐛 Bug Fixes

  • api: rounds crops much more reliably and gracefully handles subpixel crops

1.6.14

🚀 Features

  • script: adds data-twic-* attributes as an alternative to using a class
  • script: makes script configurable through query string

1.6.13

🐛 Bug Fixes

  • api: fixes lost focus when cropping with no origin
  • api: fixes a rare but nasty bug when cropping with origin

1.6.12

🐛 Bug Fixes

  • api: fixes a crash on save with CMYK JPEGs

1.6.11

🚀 Features

  • api: properly blends multiple background colors

🐛 Bug Fixes

  • api: stops checking origin SSL certificates
  • api: fixes color parsing

1.6.10

🚀 Features

  • api: boolean expressions can be specified with more keywords

1.6.8

🚀 Features

  • api: adds possibility to specify alpha in color using short or long hexa for short/long hexa colors (like fff8 or f0a5d142)

🐛 Bug Fixes

  • api: fixes subpixel resizing

1.6.3

🐛 Bug Fixes

  • api: re-enables CORS (was broken by a typo)
  • api: fixes bad extract area error for watermarks
  • api: fixes artefacts around translucency edges when resizing
  • script: properly detects detached elements to avoid nasty exception

1.6.2

🐛 Bug Fixes

  • api: fixes token-based sources

1.6.1

🐛 Bug Fixes

  • script: fixes bad sizing of flex elements

1.6.0

🚀 Features

  • admin: adds watermarking
  • admin: adds fallback support in case of 4xx errors
  • api: overall performance boost
  • api: much enhanced focus=auto
  • api: introduces focus=faces
  • api: adds heif and avif support

🐛 Bug Fixes

  • script: much better dimension computations across the board

1.5.10

🐛 Bug Fixes

  • script: properly estimates auto dimensions for loading=lazy images

1.5.9

🐛 Bug Fixes

  • script: properly compute bottom and right

1.5.8

🐛 Bug Fixes

  • admin: Accept-Encoding can be overidden from path configuration

1.5.7

🚀 Features

  • api: adds Timing-Allow-Origin to CORS headers
  • script: ensures minimum support for gimped/older browsers (like SlimBoat)

🐛 Bug Fixes

  • script: properly determines min/max width when parent is inline

1.5.6

🚀 Features

  • api: accepts corrupted images and transform them anyway
  • api: sets CORS headers wide open

1.5.4

🐛 Bug Fixes

  • script: fixes parent sizing computation
  • script: fixes auto dimensions detection
  • script: fixes multiple backgrounds for all supported browsers

1.5.3

🐛 Bug Fixes

  • script: avoids intermittent race condition between DOM readyness and getting anticipation value

1.5.2

🐛 Bug Fixes

  • script: fixes readyState check for old IEs so that the script can be dynamically inserted during DOM parsing and actually work

1.5.0

🚀 Features

  • api: adds math functions
  • api: much enhanced focus=auto
  • api: outputs 8-bits pngs by default and introduces truecolor transformation
  • script: now supports max-width, max-height, min-width, and min-height

🐛 Bug Fixes

  • api: fixes grammar so that expressions like max=-x615 are valid as they should
  • api: properly handles ICC profiles
  • script: handles cases of floating containers not having proper sizing
  • script: properly cleans up DOM-attached data

1.4.0

🚀 Features

  • script: adds anticipation config

🐛 Bug Fixes

  • api: fixes random crop outside errors
  • api: properly follows origin server redirections

1.3.0

🚀 Features

  • api: adds new query-based syntax
  • api: adds x-twicpics-source and x-twicpics-quality response headers

🐛 Bug Fixes

  • api: issues a 502 response rather than a 422 reponse when source image size is too large
  • api: ensures consistent vary for both 200 and 304 responses
  • api: removes TwicPics user agent for requests to the origin server
  • script: fixes false URLs in background transformations when a background has a transformation but no size

1.2.11

🐛 Bug Fixes

  • api: forwards 404 and 410 responses

1.2.10

🚀 Features

  • api: issues 504 responses when origin server times out

1.2.8

🚀 Features

  • api: adds support for Save-Data and ECT headers

🐛 Bug Fixes

  • api: rationalizes headers management from and to the origin

1.2.7

🚀 Features

  • api: adds zoom transformation

🐛 Bug Fixes

  • api: makes cover with ratio consistent with cover with pixels

1.2.4

🐛 Bug Fixes

  • api: removes trailing double quotes from access-control-allow-methods

1.2.3

🐛 Bug Fixes

  • api: allows WebP as an input format

1.2.2

🐛 Bug Fixes

  • api: lets animated gifs pass through as is

1.2.1

🐛 Bug Fixes

  • api: gzips scripts