Images

Posted on November 25, 2016

The Images config module is responsible to easily register new image sizes.

Default config path

{{ Project Name_base_dir }}/app/config/images.json

You can rewrite this path by lf_config_images_path filter.

Keys:

image_size_name

Description: register new image size.

Value: array with image parameters

Value item arguments:

$width

(int) (Required) Image width in pixels.

$height

(int) (Required) Image height in pixels.

$crop

(bool|array) (Optional) Whether to crop images to specified width and height or resize. An array can specify positioning of the crop area.
Default value: false

$in_drop_down

(Optional) Add image size to WordPress system image sizes dropdown.

 

Based on:

Plugin API/Filter Reference/image size names choose

add_image_size()

1 Comments

  • Cathleen
    Cathleen
    January 3, 2017 at 11:38 am
    You've really helped me untaesdrnd the issues. Thanks.
    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *