The field type PageBuilderFieldImage extends the default file field type and adds Resize options.
When you create PageBuilder Add-ons and authorize the Upload of images it can be handy to set a Max width and Max Height for the image files.
When a user uploads an 8 megapixel image to a web site you can fix the size to 600px width and the PageBuilderFieldImage will automatically resize the image to 600px using the GD library.
Example of Registry Source:
<rfield name="my_image"> <rdata type="fieldtype">PageBuilderFieldImage</rdata> <rdata type="label">My Image</rdata> <rdata type="max_width">600</rdata> <rdata type="max_height">450</rdata> <rdata type="showpicture">1</rdata> <rdata type="picture">images/</rdata> <rdata type="overwrite">yes</rdata> </rfield>
Field Type options