method

processed

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: Preview
processed() public

Processes the preview if it has not been processed yet. Returns the receiving +ActiveStorage::Preview+ instance for convenience:

blob.preview(resize_to_limit: [100, 100]).processed.url

Processing a preview generates an image from its blob and attaches the preview image to the blob. Because the preview image is stored with the blob, it is only generated once.

Show source
Register or log in to add new notes.