Hoppa till huvudinnehåll

`<sf-image3>`

Allow users to upload images that fit your design.

Uppdaterad för mer än en vecka sedan

Allow users to upload images that fit your design.

Basic Example

<sf-image3
id=":1"
width="400"
height="300"
adjustable="true"
></sf-image3>

Output:

<img src="...">

Key Features

Adjustable Images

When enabled, users can select modes (fill, fit, crop) and resize images. Specific modes can be limited:

<sf-image3 id=":1" adjustable="fill,crop"></sf-image3>

The system uses smart algorithms to detect important image details during cropping.

Background Image Option

Images can render as CSS backgrounds within a <div> rather than as <img> tags.

Available Attributes

Attribute

Description

width

Pixel width (numeric, not "px")

height

Pixel height (numeric, not "px")

adjustable

Boolean or specific modes list

linkable

Enable image linking

resizable

Allow height adjustment (10px to specified height)

resolution

Set to "2x" for high-resolution uploads

link-tab

Default to "video" tab in link modal

placeholder

Set to "round" for circular image preview

placeholder-width

Custom placeholder width

placeholder-height

Custom placeholder height

Fick du svar på din fråga?