Comments (5)
Yes, you can set paths here's the defaults.
$app['thumbnails.paths'] = array(
'files' => $app['resources']->getPath('files'),
'theme' => $app['resources']->getPath('themebase')
);
You can add to that by adding to or replacing $app['thumbnails.paths'] in your app bootstrap
from thumbs.
I tried that way, but it didn't work. Maybe I did something wrong, so I will try it again and inform you if I succeeded.
from thumbs.
You will need to do it before you initialize bolt by the way... in your bootstrap this will be before the call:
$app->initialize();
from thumbs.
I see, so that's why it isn't working. Is there any other way to do it in a standard Bolt installation so I don't have to modify the built in bootstrap.php?
from thumbs.
Ok, I found out that I did the wrong way and managed to do from an extension. I tried to modify $app['thumbnails.paths']
array directly, which is not possible, but after creating an array I am able to overwrite it.
The extension itself registers a service provider where I use the register method.
from thumbs.
Related Issues (15)
- urldecode HOT 1
- $app->pass() does not exist HOT 1
- [RFC] Add support for retina images. HOT 1
- Passthrough when file is SVG
- bolt thumbnail setting to save files (static) is ignored HOT 1
- Non existing method pass() in 2.x provider HOT 2
- [RFC] Allow Quality and Crop Direction to be configurable HOT 8
- Mount point in path HOT 8
- Thumbnails Error when running inside Docker container HOT 7
- Throw exception if GD isn't installed correctly HOT 2
- [3.3] "not found" image throws an exception HOT 6
- Tests on `master` are broken. HOT 3
- ThumbnailResponderTest incompatible with PHP 5.3 HOT 1
- Preserve gif animation when creating thumbs HOT 2
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 thumbs.