Get KoolPHP UI with 30% OFF!

define the width and high from an image

Gerd Huber
Hallo,
can i define another width and high ?
Thank you
Gerd
Posted Sep 3, 2015 Kool
Peter
What do you mean by "another"? Do you mean you want to set a custom width and height for image?
Posted Sep 5, 2015 , edited Sep 5, 2015 Kool
Gerd Huber
yes that it. i want to define a custom with and height .
gerd
Posted Sep 6, 2015 Kool
Peter
Do you want to set the custom width and height for small image or big image? I will try to make a temporarily solution to set them while waiting for official release with width and height properties added ( I have submitted the request to dev.team)
Posted Sep 7, 2015 Kool
Gerd Huber
Hallo Peter,
i want it for the small image. thank you
Gerd
Posted Sep 7, 2015 Kool
Peter
Hi,
You cover the KoolImageView render with a <div> or whatever tag:
<div class='box'>
   <?php echo $kiv->Render(); ?>
</div>

You set the css style with custom width and height like this:
div.box img
{
   width:160px;
   height:80px;
}

Hope that help.
Posted Sep 7, 2015 , edited Sep 7, 2015 Kool
Gerd Huber
that works great, thank you
Gerd
Posted Sep 8, 2015 Kool
Viki
Bardzo ciekawy temat dotyczący pracy z obrazami w PHP. Odpowiednie określenie szerokości i wysokości grafiki jest niezwykle ważne, szczególnie gdy tworzymy strony internetowe, galerie lub systemy zarządzania zdjęciami. Warto pamiętać o zachowaniu proporcji obrazu, aby uniknąć zniekształceń i pogorszenia jakości. Przy takich zadaniach przydatna jest znajomość funkcji do pobierania wymiarów plików graficznych oraz odpowiedniego skalowania. Dobrze opisane przykłady na forum pomagają szybciej rozwiązywać podobne problemy. Przy okazji, podczas pracy przy projektach internetowych często trafiam na różne ciekawe rozwiązania i narzędzia, podobnie jak można znaleźć interesujące propozycje na stronie afkspin app, która zwróciła moją uwagę. Dzięki za wartościową dyskusję i praktyczne wskazówki dotyczące PHP oraz obsługi obrazów.
Posted 3 days ago Kool