Bedrock: use webp images (#7601)
This commit is contained in:
parent
082b686582
commit
8d695a121c
13 changed files with 24 additions and 24 deletions
BIN
bedrock/assets/images/Book.webp
Normal file
BIN
bedrock/assets/images/Book.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 KiB |
BIN
bedrock/assets/images/Diamond_Pickaxe.webp
Normal file
BIN
bedrock/assets/images/Diamond_Pickaxe.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 KiB |
BIN
bedrock/assets/images/Gold_Ingot.webp
Normal file
BIN
bedrock/assets/images/Gold_Ingot.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
bedrock/assets/images/Unknown_Object.webp
Normal file
BIN
bedrock/assets/images/Unknown_Object.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
BIN
bedrock/assets/images/background.webp
Normal file
BIN
bedrock/assets/images/background.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
|
@ -11,10 +11,10 @@ declare( strict_types = 1 );
|
|||
|
||||
<!-- wp:group {"align":"full","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}},"backgroundColor":"primary","layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group alignfull has-primary-background-color has-background" style="margin-top:0px;margin-bottom:0px">
|
||||
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.png","isRepeated":true,"dimRatio":0,"isUserOverlayColor":true,"align":"full","layout":{"type":"constrained"}} -->
|
||||
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.webp","isRepeated":true,"dimRatio":0,"isUserOverlayColor":true,"align":"full","layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-cover alignfull is-repeated">
|
||||
<span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span>
|
||||
<div role="img" class="wp-block-cover__image-background is-repeated" style="background-position:50% 50%;background-image:url(<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.png)"></div>
|
||||
<div role="img" class="wp-block-cover__image-background is-repeated" style="background-position:50% 50%;background-image:url(<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.webp)"></div>
|
||||
<div class="wp-block-cover__inner-container">
|
||||
<!-- wp:group {"align":"wide","style":{"border":{"width":"1px"},"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60","right":"var:preset|spacing|60"},"margin":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"}}},"borderColor":"contrast","backgroundColor":"base","layout":{"type":"default"}} -->
|
||||
<div class="wp-block-group alignwide has-border-color has-contrast-border-color has-base-background-color has-background" style="border-width:1px;margin-top:var(--wp--preset--spacing--70);margin-bottom:var(--wp--preset--spacing--70);padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--60)">
|
||||
|
@ -25,7 +25,7 @@ declare( strict_types = 1 );
|
|||
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} -->
|
||||
<main class="wp-block-group">
|
||||
<!-- wp:image {"sizeSlug":"full","linkDestination":"none","align":"center"} -->
|
||||
<figure class="wp-block-image aligncenter size-full"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/Unknown_Object.png" alt=""/></figure>
|
||||
<figure class="wp-block-image aligncenter size-full"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/Unknown_Object.webp" alt=""/></figure>
|
||||
<!-- /wp:image -->
|
||||
|
||||
<!-- wp:paragraph {"align":"center","fontSize":"large"} -->
|
||||
|
|
|
@ -11,10 +11,10 @@ declare( strict_types = 1 );
|
|||
|
||||
<!-- wp:group {"align":"full","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}},"backgroundColor":"primary","layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group alignfull has-primary-background-color has-background" style="margin-top:0px;margin-bottom:0px">
|
||||
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.png","isRepeated":true,"dimRatio":0,"isUserOverlayColor":true,"align":"full","layout":{"type":"constrained"}} -->
|
||||
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.webp","isRepeated":true,"dimRatio":0,"isUserOverlayColor":true,"align":"full","layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-cover alignfull is-repeated">
|
||||
<span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span>
|
||||
<div role="img" class="wp-block-cover__image-background is-repeated" style="background-position:50% 50%;background-image:url(<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.png)"></div>
|
||||
<div role="img" class="wp-block-cover__image-background is-repeated" style="background-position:50% 50%;background-image:url(<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.webp)"></div>
|
||||
<div class="wp-block-cover__inner-container">
|
||||
<!-- wp:group {"align":"wide","style":{"border":{"width":"1px"},"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60","right":"var:preset|spacing|60"},"margin":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"}}},"borderColor":"contrast","backgroundColor":"base","layout":{"type":"default"}} -->
|
||||
<div class="wp-block-group alignwide has-border-color has-contrast-border-color has-base-background-color has-background" style="border-width:1px;margin-top:var(--wp--preset--spacing--70);margin-bottom:var(--wp--preset--spacing--70);padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--60)">
|
||||
|
|
|
@ -11,10 +11,10 @@ declare( strict_types = 1 );
|
|||
|
||||
<!-- wp:group {"align":"full","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}},"backgroundColor":"primary","layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group alignfull has-primary-background-color has-background" style="margin-top:0px;margin-bottom:0px">
|
||||
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.png","isRepeated":true,"dimRatio":0,"isUserOverlayColor":true,"align":"full","layout":{"type":"constrained"}} -->
|
||||
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.webp","isRepeated":true,"dimRatio":0,"isUserOverlayColor":true,"align":"full","layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-cover alignfull is-repeated">
|
||||
<span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span>
|
||||
<div role="img" class="wp-block-cover__image-background is-repeated" style="background-position:50% 50%;background-image:url(<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.png)"></div>
|
||||
<div role="img" class="wp-block-cover__image-background is-repeated" style="background-position:50% 50%;background-image:url(<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.webp)"></div>
|
||||
<div class="wp-block-cover__inner-container">
|
||||
<!-- wp:group {"align":"wide","style":{"border":{"width":"1px"},"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60","right":"var:preset|spacing|60"},"margin":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"}}},"borderColor":"contrast","backgroundColor":"base","layout":{"type":"default"}} -->
|
||||
<div class="wp-block-group alignwide has-border-color has-contrast-border-color has-base-background-color has-background" style="border-width:1px;margin-top:var(--wp--preset--spacing--70);margin-bottom:var(--wp--preset--spacing--70);padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--60)">
|
||||
|
|
|
@ -11,10 +11,10 @@ declare( strict_types = 1 );
|
|||
|
||||
<!-- wp:group {"align":"full","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}},"backgroundColor":"primary","layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group alignfull has-primary-background-color has-background" style="margin-top:0px;margin-bottom:0px">
|
||||
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.png","isRepeated":true,"dimRatio":0,"isUserOverlayColor":true,"align":"full","layout":{"type":"constrained"}} -->
|
||||
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.webp","isRepeated":true,"dimRatio":0,"isUserOverlayColor":true,"align":"full","layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-cover alignfull is-repeated">
|
||||
<span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span>
|
||||
<div role="img" class="wp-block-cover__image-background is-repeated" style="background-position:50% 50%;background-image:url(<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.png)"></div>
|
||||
<div role="img" class="wp-block-cover__image-background is-repeated" style="background-position:50% 50%;background-image:url(<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.webp)"></div>
|
||||
<div class="wp-block-cover__inner-container">
|
||||
<!-- wp:group {"align":"wide","style":{"border":{"width":"1px"},"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60","right":"var:preset|spacing|60"},"margin":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"}}},"borderColor":"contrast","backgroundColor":"base","layout":{"type":"default"}} -->
|
||||
<div class="wp-block-group alignwide has-border-color has-contrast-border-color has-base-background-color has-background" style="border-width:1px;margin-top:var(--wp--preset--spacing--70);margin-bottom:var(--wp--preset--spacing--70);padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--60)">
|
||||
|
|
|
@ -9,19 +9,19 @@ declare( strict_types = 1 );
|
|||
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|40"},"typography":{"lineHeight":"1"}},"textColor":"secondary","layout":{"type":"flex","flexWrap":"wrap"}} -->
|
||||
<div class="wp-block-group has-secondary-color has-text-color" style="line-height:1">
|
||||
<!-- wp:image {"width":"20px","height":"20px","scale":"cover","sizeSlug":"full","linkDestination":"none"} -->
|
||||
<figure class="wp-block-image size-full is-resized"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/Diamond_Pickaxe.png" alt="" class="" style="object-fit:cover;width:20px;height:20px"/></figure>
|
||||
<figure class="wp-block-image size-full is-resized"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/Diamond_Pickaxe.webp" alt="" class="" style="object-fit:cover;width:20px;height:20px"/></figure>
|
||||
<!-- /wp:image -->
|
||||
|
||||
<!-- wp:post-date {"format":"M j, Y","isLink":true} /-->
|
||||
|
||||
<!-- wp:image {"width":"20px","height":"20px","scale":"cover","sizeSlug":"full","linkDestination":"none"} -->
|
||||
<figure class="wp-block-image size-full is-resized"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/Book.png" alt="" class="" style="object-fit:cover;width:20px;height:20px"/></figure>
|
||||
<figure class="wp-block-image size-full is-resized"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/Book.webp" alt="" class="" style="object-fit:cover;width:20px;height:20px"/></figure>
|
||||
<!-- /wp:image -->
|
||||
|
||||
<!-- wp:post-terms {"term":"category"} /-->
|
||||
|
||||
<!-- wp:image {"width":"20px","height":"20px","scale":"cover","sizeSlug":"full","linkDestination":"none"} -->
|
||||
<figure class="wp-block-image size-full is-resized"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/Gold_Ingot.png" alt="" class="" style="object-fit:cover;width:20px;height:20px"/></figure>
|
||||
<figure class="wp-block-image size-full is-resized"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/Gold_Ingot.webp" alt="" class="" style="object-fit:cover;width:20px;height:20px"/></figure>
|
||||
<!-- /wp:image -->
|
||||
|
||||
<!-- wp:post-terms {"term":"post_tag"} /-->
|
||||
|
|
|
@ -11,10 +11,10 @@ declare( strict_types = 1 );
|
|||
|
||||
<!-- wp:group {"align":"full","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}},"backgroundColor":"primary","layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group alignfull has-primary-background-color has-background" style="margin-top:0px;margin-bottom:0px">
|
||||
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.png","isRepeated":true,"dimRatio":0,"isUserOverlayColor":true,"align":"full","layout":{"type":"constrained"}} -->
|
||||
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.webp","isRepeated":true,"dimRatio":0,"isUserOverlayColor":true,"align":"full","layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-cover alignfull is-repeated">
|
||||
<span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span>
|
||||
<div role="img" class="wp-block-cover__image-background is-repeated" style="background-position:50% 50%;background-image:url(<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.png)"></div>
|
||||
<div role="img" class="wp-block-cover__image-background is-repeated" style="background-position:50% 50%;background-image:url(<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.webp)"></div>
|
||||
<div class="wp-block-cover__inner-container">
|
||||
<!-- wp:group {"align":"wide","style":{"border":{"width":"1px"},"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60","right":"var:preset|spacing|60"},"margin":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"}}},"borderColor":"contrast","backgroundColor":"base","layout":{"type":"default"}} -->
|
||||
<div class="wp-block-group alignwide has-border-color has-contrast-border-color has-base-background-color has-background" style="border-width:1px;margin-top:var(--wp--preset--spacing--70);margin-bottom:var(--wp--preset--spacing--70);padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--60)">
|
||||
|
|
|
@ -11,10 +11,10 @@ declare( strict_types = 1 );
|
|||
|
||||
<!-- wp:group {"align":"full","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}},"backgroundColor":"primary","layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group alignfull has-primary-background-color has-background" style="margin-top:0px;margin-bottom:0px">
|
||||
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.png","isRepeated":true,"dimRatio":0,"isUserOverlayColor":true,"align":"full","layout":{"type":"constrained"}} -->
|
||||
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.webp","isRepeated":true,"dimRatio":0,"isUserOverlayColor":true,"align":"full","layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-cover alignfull is-repeated">
|
||||
<span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span>
|
||||
<div role="img" class="wp-block-cover__image-background is-repeated" style="background-position:50% 50%;background-image:url(<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.png)"></div>
|
||||
<div role="img" class="wp-block-cover__image-background is-repeated" style="background-position:50% 50%;background-image:url(<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/background.webp)"></div>
|
||||
<div class="wp-block-cover__inner-container">
|
||||
<!-- wp:group {"align":"wide","style":{"border":{"width":"1px"},"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|60","right":"var:preset|spacing|60"},"margin":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"}}},"borderColor":"contrast","backgroundColor":"base","layout":{"type":"default"}} -->
|
||||
<div class="wp-block-group alignwide has-border-color has-contrast-border-color has-base-background-color has-background" style="border-width:1px;margin-top:var(--wp--preset--spacing--70);margin-bottom:var(--wp--preset--spacing--70);padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--60)">
|
||||
|
|
|
@ -71,18 +71,18 @@ https://commons.wikimedia.org/w/index.php?curid=128528012
|
|||
|
||||
Included in theme templates:
|
||||
|
||||
"Diamond_Pickaxe.png" by MrIbby
|
||||
"Diamond_Pickaxe.webp" by MrIbby
|
||||
CC BY-SA 3.0 DEED Attribution-ShareAlike 3.0 Unported
|
||||
https://wiki.minetest.net/File:Diamond_Pickaxe.png
|
||||
https://wiki.minetest.net/File:Diamond_Pickaxe.webp
|
||||
|
||||
"Gold_Ingot.png" by MrIbby
|
||||
"Gold_Ingot.webp" by MrIbby
|
||||
CC BY-SA 3.0 DEED Attribution-ShareAlike 3.0 Unported
|
||||
https://wiki.minetest.net/File:Gold_Ingot.png
|
||||
https://wiki.minetest.net/File:Gold_Ingot.webp
|
||||
|
||||
"Book.png" by Wuzzy
|
||||
"Book.webp" by Wuzzy
|
||||
CC BY-SA 3.0 DEED Attribution-ShareAlike 3.0 Unported
|
||||
https://wiki.minetest.net/File:Book.png
|
||||
https://wiki.minetest.net/File:Book.webp
|
||||
|
||||
"Unknown_Object.png" by Wuzzy
|
||||
"Unknown_Object.webp" by Wuzzy
|
||||
CC BY-SA 3.0 DEED Attribution-ShareAlike 3.0 Unported
|
||||
https://wiki.minetest.net/File:Unknown_Object.png
|
||||
https://wiki.minetest.net/File:Unknown_Object.webp
|
||||
|
|
Loading…
Reference in a new issue