# |
Mar 12th 2019, 09:54 |
david |
if (!empty($config['orientate'])) { $image = $this->orientate($image); } |
# |
Mar 12th 2019, 09:54 |
david |
yes, I am reading your ImageTransform class |
# |
Mar 12th 2019, 09:54 |
neon1024 |
@david http://image.intervention.io/api/orientate |
# |
Mar 12th 2019, 09:45 |
neon1024 |
Don’t want to rotate all the things! ;) |
# |
Mar 12th 2019, 09:45 |
neon1024 |
As you probably want to try and detect the orientation, so that images uploaded without it skip any re-orientation code |
# |
Mar 12th 2019, 09:44 |
neon1024 |
I’d do it in my own transformer yeah |
# |
Mar 12th 2019, 09:42 |
david |
does it happen before the thumbnail generation? |
# |
Mar 12th 2019, 09:42 |
david |
is the way? |
# |
Mar 12th 2019, 09:42 |
david |
I am looking the way to implement this using the "transformClass" option |
# |
Mar 12th 2019, 09:41 |
neon1024 |
I used something :flushed: |
# |
Mar 12th 2019, 09:41 |
neon1024 |
Er, Intevention even |
# |
Mar 12th 2019, 09:41 |
neon1024 |
I only used the Imagine library, so I bet that has some methods for managing that :slightly_smiling_face: |
# |
Mar 12th 2019, 09:40 |
neon1024 |
I think the image needs to contain special meta-data though which has the orientation |
# |
Mar 12th 2019, 09:40 |
neon1024 |
@david Yeah, someone submitted that as a PR |
# |
Mar 12th 2019, 09:40 |
david |
@neon1024 is there a way using Proffer to orientate a picture taken with a phone before generating the fhumbnails? |
# |
Mar 12th 2019, 09:39 |
acosonic |
To me "serverless" seems like struggling with "latest" and immature tech, just as you described it... |
# |
Mar 12th 2019, 09:34 |
acosonic |
Yeah I know, but they were really hard on me :slightly_smiling_face: I like virtualmin (cpanel alternative) and cakephp2, didn't have single second of downtime past 4 years... |
# |
Mar 12th 2019, 09:32 |
neon1024 |
Otherwise we’d all be writing stuff in Javascript, changing framework every two weeks and deploying to all kinds of cloud setups |
# |
Mar 12th 2019, 09:31 |
neon1024 |
Dinosaur is a bit harsh really, just because you’re not using some new fangly doodad doesn’t mean anyone is anything |
# |
Mar 12th 2019, 09:31 |
neon1024 |
We don’t really need it just yet |
# |
Mar 12th 2019, 09:30 |
neon1024 |
We will be moving to AWS in the future, but we haven’t yet |
# |
Mar 12th 2019, 09:30 |
acosonic |
@neon1024 I am being flagged as "dinosaur" for not trusting AWS and similar :slightly_smiling_face: I guess there are more of us here :) |
# |
Mar 12th 2019, 09:26 |
neon1024 |
Well, that’s a handy link! Thanks @acosonic |
# |
Mar 12th 2019, 09:17 |
acosonic |
There is even some official docs... https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/php-cakephp-tutorial.html |
# |
Mar 12th 2019, 09:16 |
acosonic |
Thanks, one more question. Anyone have experience with "serverless" and cakephp? |
# |
Mar 12th 2019, 09:14 |
neon1024 |
I tend to drop these into every project in most instances |
# |
Mar 12th 2019, 09:14 |
neon1024 |
muffin/slug |
# |
Mar 12th 2019, 09:14 |
neon1024 |
foc/search too |
# |
Mar 12th 2019, 09:14 |
neon1024 |
@dereuromark IdeHelper is good too if you’re in PHP Storm |
# |
Mar 12th 2019, 09:13 |
neon1024 |
Stuff like bootstrap-ui, crud, trash |
# |
Mar 12th 2019, 09:13 |
neon1024 |
Most of the ones I use are on this list, but I don’t use all of the ones on the list |
# |
Mar 12th 2019, 09:13 |
neon1024 |
https://github.com/FriendsOfCake/awesome-cakephp |
# |
Mar 12th 2019, 09:12 |
acosonic |
@neon1024 any list you can point me towards? |
# |
Mar 12th 2019, 09:05 |
neon1024 |
I wouldn’t know about boilerplate, but there sure are a set of plugins which I would recommend for any project |
# |
Mar 12th 2019, 09:01 |
acosonic |
Hi everyone, so my team is considering building new project in cakephp3, but not migrating our old ones :) EVER from 2.x so we are wondering, if there are some recommendations about cakephp 3 boilerplate...? |
# |
Mar 11th 2019, 23:12 |
mdotobie |
does anybody know any articles on best practices on when to put a data mutating method on an entity or a table object. I have a general delineation but I’d like to look at other perspectives. |
# |
Mar 11th 2019, 19:16 |
st.steinkuehler |
@jeremyharris I've already looked on the same page. Overlooked it. Thank you. |
# |
Mar 11th 2019, 19:12 |
jeremyharris |
@st.steinkuehler you shouldn’t need to modify request data, but if you do you can maybe use withoutData: https://api.cakephp.org/3.7/class-Cake.Http.ServerRequest.html#_withoutData |
# |
Mar 11th 2019, 18:59 |
st.steinkuehler |
Is there a way to delete data from the request in a controller action? Like this `$this->request->withData('myValue', Null)` <-- does not work |
# |
Mar 11th 2019, 18:54 |
dereuromark |
how can one make decisions in Migration file based on current adapter used? did anyone implement this for their plugin migrations? |
# |
Mar 11th 2019, 18:21 |
jeremyharris |
is_null yeah I think that’s a bug in the migration generation script. Instead, change it to “integer” and use limit INT_TINY on your adapter, e.g. MysqlAdapter::INT_TINY |