CakePHP- I want to display an image with a special height n width

I am creating a cakephp application in which I upload an image. But for some functions of my application, I want to display an image with a certain width n width without sacrificing image quality. So please suggest me to do this.

+3
source share
2 answers

I suggest you use the plugin and its relatively simple ..

http://www.milesj.me/resources/script/uploader-plugin

it is very easy to implement. it takes care of validation and also attaches it to the model, etc.

Image organization

  • , say original. , script, : D
  • . 200 * 200, 125 * 125, 50 * 50 - , .

  • , . , . eaiser, , .

.

http://josediazgonzalez.com/2010/08/16/cakephp-plugins-a-biblical-retelling/

, cakephp

http://cakepackages.com/

,

+1

width height . .

, .

:

$this->Html->image('image1.jpg', array('width'=>'200px'));
+11

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


All Articles