

Parameters :įormat ( str) – The new format of the asset. Returns a new asset with the specified format.

InvalidArgument – The asset had an invalid size. Returns a new asset with the specified size. InvalidArgument – An invalid size or format was passed. Must be either ‘webp’, ‘jpeg’, ‘jpg’, or ‘png’. Static_format ( str) – The new format to change it to if the asset isn’t animated. ‘webp’, ‘jpeg’, ‘jpg’, ‘png’, or ‘gif’ if it’s animated. Parameters :įormat ( str) – The new format to change it to.

Returns a new asset with the passed components replaced. Returns the identifying key of the asset. x != yĬhecks if the asset is not equal to another asset. x = yĬhecks if the asset is equal to another asset. Returns the length of the CDN asset’s URL.
