Jump to content

Размытое фото


mendax
 Share

Recommended Posts

всем привет.

 

не могу разобраться с фотографиями.

делаю свой шаблон, при переходе на товар - картинка выходит размытой

код сделал так:

<div id="demo" class="carousel slide photo_product" data-bs-ride="carousel">

  <div class="carousel-inner">
{% if images %}
{% for image in images %}
    <div align='center' class="carousel-item {% if loop.index0 == 0 %} active{% endif %}">
      <img width='{{popup_width}}' height='{{popup_height}}' src="{{ image.thumb }}" class="d-block w-50">
    </div>
{% endfor %}
{% endif %}

  </div>

 

уже пробовал менять размеры картинки в админке.

подскажите в каком направлении капать

2025-03-03_12-55-58.png

Link to comment
Share on other sites

Нужен не код , а ссылка. Здесь два условия
width='{{popup_width}}' height='{{popup_height}}' из настроек и ещё одно в самом коде  class="d-block w-50", что означает занимать половину контейнера.

И какое из этих условий портит картинку, лучше покажет и расскажет браузер.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...