Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 64d020d

Browse files
authored
Merge pull request #1 from bassplayer7/patch-4
Grammar tweaks and copy edits for catalog images
2 parents 606ebb8 + 947ce6e commit 64d020d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

guides/v2.0/frontend-dev-guide/themes/theme-images.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ github_link: frontend-dev-guide/themes/theme-images.md
1313

1414
The properties of product images used on the storefront are stored in the `view.xml` configuration file. This topic provides all details about what properties are available and how to configure them.
1515

16-
The properties for the images displayed on the product pages are defined by the gallery widget options. The options of the widget can be configured in the theme `view.xml` as well. For detail view the [Gallery widget]({{page.baseurl}}javascript-dev-guide/widgets/widget_gallery.html) topic.
16+
The properties for the images displayed on the product pages are defined by the gallery widget options. The options of the widget can be configured in the theme `view.xml` as well. For more details, view the [Gallery widget]({{page.baseurl}}javascript-dev-guide/widgets/widget_gallery.html) topic.
1717

1818
<h2 id="view_xml_structure">Configure image properties in view.xml</h2>
1919

@@ -238,15 +238,13 @@ The following table contains the list of all properties which can be configured:
238238
</table>
239239

240240
#### Resize catalog images
241-
The `magento catalog:images:resize` command enables you to resize images for display on your storefront; for example:
241+
Generally, product images are cached while saving the product. However, the `magento catalog:images:resize` command enables you to resize all images for display on your storefront. Situations where this could be necessary might be:
242242

243-
* After you import products, which might have variable sized images
243+
* After you import products, which might have images of various sizes
244244
* If images were resized or deleted manually from cache
245245

246246
Each image assigned to a product must be resized in accordance with image metadata defined in a module's <a href="{{page.baseurl}}frontend-dev-guide/themes/theme-create.html#fedg_create_theme_how-to-images">`view.xml`</a> configuration file. After resizing an image, its resized copy is stored in the cache (`/pub/media/catalog/product/cache` directory). Magento serves storefront images from cache.
247247

248-
Generally, product images are cached while saving the product. However, sometimes you might need to re-create the product images cache using this command&mdash;for example, after you import products, if images were resized manually in the cache, or if the cache was manually cleared by mistake.
249-
250248
Command usage:
251249

252250
`php <magento install dir>/bin/magento catalog:images:resize`

0 commit comments

Comments
 (0)