mendax Posted March 3, 2025 at 09:59 AM Share Posted March 3, 2025 at 09:59 AM всем привет. не могу разобраться с фотографиями. делаю свой шаблон, при переходе на товар - картинка выходит размытой код сделал так: <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> уже пробовал менять размеры картинки в админке. подскажите в каком направлении капать 0 Quote Link to comment Share on other sites More sharing options...
Tom Posted March 3, 2025 at 01:42 PM Share Posted March 3, 2025 at 01:42 PM Нужен не код , а ссылка. Здесь два условия width='{{popup_width}}' height='{{popup_height}}' из настроек и ещё одно в самом коде class="d-block w-50", что означает занимать половину контейнера. И какое из этих условий портит картинку, лучше покажет и расскажет браузер. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.