{"id":149966,"date":"2021-11-14T13:10:54","date_gmt":"2021-11-14T13:10:54","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/bf-advanced-images\/"},"modified":"2023-03-07T10:14:38","modified_gmt":"2023-03-07T10:14:38","slug":"bf-advanced-images","status":"publish","type":"plugin","link":"https:\/\/nb.wordpress.org\/plugins\/bf-advanced-images\/","author":20090115,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"1.0.1","tested":"6.1.10","requires":"4.7","requires_php":"7.4","requires_plugins":"","header_name":"BF Advanced Images","header_author":"Bornfight","header_description":"Creating images on demand, image optimization","assets_banners_color":"","last_updated":"2023-03-07 10:14:38","external_support_url":"","external_repository_url":"","donate_link":"\/","header_plugin_uri":"https:\/\/github.com\/bornfight\/bf-advanced-images","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":90,"downloads":70272,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"bornfight","date":"2021-11-14 13:10:51"},"1.0.1":{"tag":"1.0.1","author":"bornfight","date":"2023-03-07 10:14:38"}},"upgrade_notice":{"1.0.0":"<p>First Release<\/p>"},"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[205085,205086,21466,163],"plugin_category":[50],"plugin_contributors":[204866],"plugin_business_model":[],"class_list":["post-149966","plugin","type-plugin","status-publish","hentry","plugin_tags-advanced-images","plugin_tags-bf","plugin_tags-custom-images","plugin_tags-images","plugin_category-media","plugin_contributors-jmucak","plugin_committers-bornfight"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/bf-advanced-images.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>With this plugin you can create images on demand. You can disable default image sizes so\neach image you upload won't be copied multiple times with different size. You can create your sizes for images and\nsize will be created when you call image and not on upload.<\/p>\n\n<!--section=installation-->\n<p>Upload 'bf-advanced-images' to the '\/wp-content\/plugins\/' directory<\/p>\n\n<p>Activate the plugin through the 'Plugins' menu in WordPress<\/p>\n\n<h4>How this plugin works<\/h4>\n\n<ol>\n<li>Removing default image sizes<\/li>\n<\/ol>\n\n<p>You can disable default image sizes so when uploading an image only original image will be uploaded<\/p>\n\n<ol>\n<li>Adding new cached image sizes<\/li>\n<\/ol>\n\n<p>You can create as many image size you want and only when you use this image size image with this size will be created.<\/p>\n\n<pre><code>if ( function_exists( 'bfai_register_image_sizes' ) ) {\n    bfai_register_image_sizes( array(\n        'image_200'     =&gt; array( 200, 0 ),\n        'image_350_200' =&gt; array( 350, 200 ),\n        'image_150_200' =&gt; array( 150, 200 ),\n    ) );\n}\n<\/code><\/pre>\n\n<ol>\n<li>Creating image sizes on demand<\/li>\n<\/ol>\n\n<p>When image is called it will generate image size for that image<\/p>\n\n<p>Example 1:<\/p>\n\n<p><em>bfai_get_image_by_size_name( int $attachment_id, string $size_name, bool $crop = false);<\/em><\/p>\n\n<p>Parameters:\n<strong>$attachment_id<\/strong>\n(int)(required)<\/p>\n\n<p><strong>$size_name<\/strong>\n(string)(required) -&gt; name of size name registered with bfai_register_image_sizes function<\/p>\n\n<p><strong>$crop<\/strong>\n(bool)(optional)<\/p>\n\n<pre><code>$image_url = bfai_get_image_by_size_name( $attachment_id, 'image_200', true);\n<\/code><\/pre>\n\n<p>Example 2:<\/p>\n\n<p><em>bfai_get_image_by_custom_size( int $attachment_id, array $sizes, bool $crop = false);<\/em><\/p>\n\n<p>Parameters:\n<strong>$attachment_id<\/strong>\n(int)(required)<\/p>\n\n<p><strong>$sizes<\/strong>\n(array)(required) -&gt; Add integer width and height separated with comma<\/p>\n\n<p><strong>$crop<\/strong>\n(bool)(optional)<\/p>\n\n<pre><code>$image_url = bfai_get_image_by_custom_size( $attachment_id, array( 200, 0 ), true );\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20kind%20of%20support%20do%20you%20provide%3F'><h3>What kind of support do you provide?<\/h3><\/dt>\n<dd><p>Please post your question on plugin support forum<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<p><em>Release Date - 27 October 2021<\/em>\nFirst Release<\/p>\n\n<h4>1.0.1<\/h4>\n\n<p><em>Release Date - 22 November 2021<\/em><\/p>\n\n<ul>\n<li>New - Added WP CLI Commands<\/li>\n<\/ul>","raw_excerpt":"Create images on demand","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/149966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=149966"}],"author":[{"embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bornfight"}],"wp:attachment":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=149966"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=149966"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=149966"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=149966"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=149966"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=149966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}