Releases: codex-team/capella
Rate limits 🚦
Now you can define uploading limits for clients (identified by IP address) by setting up quota and cycle params in.env
file:
...
### Rate limiter params
# QUOTA is a number of images could be uploaded per target time CYCLE in seconds
# For example: not more 3 images per 60 seconds (quota=3, cycle=60)
RATE_LIMITER_QUOTA=3
RATE_LIMITER_CYCLE=60
#DISABLE_RATE_LIMITER=True
Bug fixes 🐛
Build system improvements
- use package
hawk.javascript
from the separate bundle file - use
@codexteam/ajax
instead ofcodex.ajax
andcodex.transport
- update
codex-notifier
package - update
@babel
's packages - replace
extract-text-webpack-plugin
tomini-css-extract-plugin
- add
cssnano
to minify css bundle - remove version from package.json
- fix postcss warnings
- fix php notice "... always_populate_raw_post_data ..."
- use Yarn as a package manager:
package-lock.json
->yarn.lock
upload
dir was created.env
file now has correct cache host for docker by default- a few docs fixes
Meet a new filter «Cover» 😜
Now you can use filter cover
to add tall, small or white-bordered images into your texts. It is easy and cool.
Cover
Param | Type | Description |
---|---|---|
color |
String | Hex code of cover's color without hash symbol |
Example: https://capella.pics/<image_id>/cover/eff2f5
Filter | Result |
---|---|
/cover/eff2f5 |
|
/crop/150/cover/fee |
Also we fixed cache critical bug #129.
Image's link with an extension
From this moment Capella return image's URL with an extension by default.
Useful when you need to validate image's link.
https://capella.pics/69256e83-66e1-449a-b0c2-5414d332e3a6.jpg
You still can get an image by link without extension.
https://capella.pics/69256e83-66e1-449a-b0c2-5414d332e3a6
Picture's info 🤓
Now Capella returns information about uploaded image:
mime
type of imagewidth
andheight
- average
color
of image in hex format size
in bytes
Example Response
{
"success": true,
"message": "Image uploaded",
"id": "69256e83-66e1-449a-b0c2-5414d332e3a6",
"url": "https:\/\/capella.pics\/69256e83-66e1-449a-b0c2-5414d332e3a6",
"mime": "image\/jpg",
"width": 1080,
"height": 700,
"color": "#9d908d",
"size": "176769"
}
Developer-friendly docs
Starting from this version Capella gets params for cache server from .env
file. Maybe you'll need to update it. Check out .env.sample.
In this version we have improved code for developers:
- added links to SDKs
- guides for deployment and development
- more source code comments
- composer now available in php container
Also:
- php-memcached support
- do not save exif data with image
- fixed bug with wrong image orientation
💥 Pasting images in Safari, Docker, Webpack 4
Migrating to Capella 2.0
We added Docker files to this project. If you want to upgrade your Capella then do these two little steps:
- Update path to Capella’s sources folder in nginx config
fromroot /var/www/capella.pics;
toroot /var/www/capella.pics/capella;
- Move
vendor/
andupload/
dirs tocapella
directory in the project's root
$ mv vendor/ capella/
$ mv upload/ capella/
New in this version
- paste images from clipboard now works in Safari
- now you can upload
image/tiff
files - easy development with Capella's Docker containers
- Webpack 4 as a client js build system
Speed up!
Nice appearance, user-frienldy uploading, API
In this version:
- New domain https://capella.pics/.
- Design update for main page and result page with uploaded image.
- You can upload image by drag-n-drop or Ctrl+V.
- Capella will show message on error.
- Described Capella API.