Comments (5)
@Renkas, can you post some code to show your usecase?
from yii2-imagine.
I don't really get what code do you want to see? This usecase is more of a visual thing as current thumbnail()
method creates fixed width/height box and fits resized image to the center of it or crops to the widest edge. But in my usecase I would like to get a thumbnail that has no fixed with/height but a maximum width/height. I think this is quite well documented on the link I gave.
Current implementation supports FIT mode from that description. I would like to get a FILL mode added to the method. Or it could also be totally different method. Maybe name it resize()
or something like that.
from yii2-imagine.
I would be way more helpful for us if you visualize your request in code, instead of having to visit external websites because of too short problem descriptions.
from yii2-imagine.
I don't really get it what you want/need from me now. :) Is something still unclear from the request? What exactly?
As far as I see only thing missing is full implementation. Everything else is already written. And there is even full implementation in GD and visual examples behind that link. I'm not going to copy other peoples work/examples/code here when it can easily be viewed in it's original environment.
from yii2-imagine.
I cannot be more clear than this ;). Regarding myexpectations? Please feel free to do a PR to cover your usecase. We are willing to review & merge.
from yii2-imagine.
Related Issues (20)
- UnexpectedValueException when installing package HOT 2
- update imagine/imagine version to 0.7? HOT 4
- yii2queue run job ,yii2-imagine not work;
- add feature to crop image durring resizing to avoid visual deffects HOT 1
- Ignore `OutOfBoundsException` error when watermark grower of source image HOT 1
- supplied resource is not a valid stream resource HOT 2
- update imagine/imagine version to 1.1.0? HOT 2
- Does not work with PECL 3.4.4 and Imagine 6 HOT 1
- php 7.3.6 segmentation fault HOT 2
- The watermarking of a watermarked image will be smaller. HOT 3
- ignore the cyrillic alphabet in label HOT 2
- Update or copy image and preserve exif meta data HOT 2
- ExifMetadataReader::extractFromFile() does not return EXIF data HOT 1
- Change color depth in png images after saving HOT 2
- Protected Static Method getThumbnailBox HOT 1
- Using S3 Containers HOT 9
- update github folder link
- update docs folder link
- update src folder link
- update root folder links
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-imagine.