Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Yell
committed
Feb 17, 2015
1 parent
c843d01
commit 325a1e4
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Thumbnail shell | ||
--------------- | ||
|
||
What it does | ||
~~~~~~~~~~~~ | ||
The shell will look through your database for images and regenerate the thumbnails based on | ||
your models Upload behaviour configuration. This allows you to change your thumbnail configuration and run the | ||
shell to update your images without having to re-upload the image. | ||
|
||
How it works | ||
~~~~~~~~~~~~ | ||
The shell takes the model you provide and checks that the Upload plugin is present and configured. Then it will loop | ||
though all the images checking that the configured upload field is populated in the database and also ensuring that the | ||
file exists on the file system. Then it will regenerate the thumbnails using the current model configuration. | ||
|
||
Running the shell | ||
~~~~~~~~~~~~~~~~~ | ||
You can run the shell from the command line as you would any cake shell. | ||
|
||
.. code:: bash | ||
Console/cake upload.thumbnail generate | ||
You will then be asked which model you want to process, and the shell will then process your images. |