Why image scale doesn't work in reStructuredText when generating html files?

I am using reStructuredText to create my static blog web pages. And I use the command below to enable the image:

.. image:: /images/01.jpg :scale: 50 :align: center 

However, the image displayed on my blog web page remains the same as the original image. It seems that the scale parameter is not working. So how to solve this problem?

+4
source share
1 answer

For the scale parameter to work, the generator must know the size of the image. Thus, you need to either explicitly determine the size using width and height (well, not the solution we are looking for), or you need to install the Python Imaging Library so that the converter automatically determines the image size.

Reference: reStructuredText specification .

+3
source

Source: https://habr.com/ru/post/1432687/


All Articles