Skip to content

Releases: codex-team/capella

Rate limits 🚦

29 May 16:48
b1f1245
Compare
Choose a tag to compare

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 🐛

14 Mar 14:52
ed3a4fc
Compare
Choose a tag to compare
  • Fix — Early beforeSend ajax method. #132
  • Fix — Cannot choose image on mobile devices. Update Ajax package. #133

Build system improvements

19 Feb 08:30
fd59149
Compare
Choose a tag to compare
  • use package hawk.javascript from the separate bundle file
  • use @codexteam/ajax instead of codex.ajax and codex.transport
  • update codex-notifier package
  • update @babel's packages
  • replace extract-text-webpack-plugin to mini-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» 😜

21 Aug 14:53
9c7069d
Compare
Choose a tag to compare

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

25 Jul 11:53
Compare
Choose a tag to compare

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 🤓

14 Jul 12:11
d74eca8
Compare
Choose a tag to compare

Now Capella returns information about uploaded image:

  • mime type of image
  • width and height
  • 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

22 Mar 21:33
4bff857
Compare
Choose a tag to compare

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

04 Mar 19:56
c83a8ca
Compare
Choose a tag to compare

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
    from root /var/www/capella.pics; to root /var/www/capella.pics/capella;
  • Move vendor/ and upload/ dirs to capella 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!

08 Dec 00:20
c65c417
Compare
Choose a tag to compare

Now you need less traffic and time to get images. Capella stores images in JPG format with quality 90.

Nice appearance, user-frienldy uploading, API

04 Dec 12:12
d8eb7cb
Compare
Choose a tag to compare

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.