yii2-attachments icon indicating copy to clipboard operation
yii2-attachments copied to clipboard

Added image resize options to download

Open maxxer opened this issue 10 years ago • 6 comments

Requires himiklab/yii2-easy-thumbnail-image-helper

maxxer avatar May 13 '15 08:05 maxxer

Something is wrong here. I cannot test that cause I have a memory limit when I try to print AttachmentsTable:

PHP Fatal Error – yii\base\ErrorException
Allowed memory size of 134217728 bytes exhausted (tried to allocate 14728 bytes)

That should not be cause 128 MB is enough

CTOlet avatar May 23 '15 03:05 CTOlet

How many images did you have attached to the model? How big are they? Maybe there's a memory leak in the EasyThumbnailImage::thumbnailImg call? I tried with few images and worked fine...

maxxer avatar May 23 '15 16:05 maxxer

I tried now with 6 images bigger than 2M each and I didn't have any problem in displaying the widget

maxxer avatar May 23 '15 16:05 maxxer

It's very strange behaviour of the script on my Mac. I still dont understand the problem. I have attached only one image with size of 150 KB

CTOlet avatar May 23 '15 17:05 CTOlet

maybe php version? I tried on 5.5 and 5.6

maxxer avatar May 23 '15 17:05 maxxer

This is a great option when it comes true, why do not resize when you first insert to the database?

Sorry I was too stupid and could not pull request, but this time I saw a great resize behavior mongosoft : UploadImageBehavior zxbodya : ImageAttachmentBehavior

Whether it could be implemented here ?

adiramardiani avatar Aug 21 '15 23:08 adiramardiani