Cloud service for image storage and delivery
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
Fix
— Early beforeSend ajax method. #132Fix
— Cannot choose image on mobile devices. Update Ajax package. #133hawk.javascript
from the separate bundle file@codexteam/ajax
instead of codex.ajax
and codex.transport
codex-notifier
package@babel
's packagesextract-text-webpack-plugin
to mini-css-extract-plugin
cssnano
to minify css bundlepackage-lock.json
-> yarn.lock
upload
dir was created.env
file now has correct cache host for docker by defaultNow you can use filter cover
to add tall, small or white-bordered images into your texts. It is easy and cool.
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.
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
Now Capella returns information about uploaded image:
mime
type of imagewidth
and height
color
of image in hex formatsize
in bytes{
"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"
}
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:
Also:
We added Docker files to this project. If you want to upgrade your Capella then do these two little steps:
root /var/www/capella.pics;
to root /var/www/capella.pics/capella;
vendor/
and upload/
dirs to capella
directory in the project's root$ mv vendor/ capella/
$ mv upload/ capella/
image/tiff
filesNow you need less traffic and time to get images. Capella stores images in JPG format with quality 90.
In this version: