{"id":32171467,"url":"https://github.com/fceruti/elixir-picasso","last_synced_at":"2026-04-07T17:31:20.181Z","repository":{"id":57533358,"uuid":"385299986","full_name":"fceruti/elixir-picasso","owner":"fceruti","description":"Dead simple image resizing \u0026 cropping tool for phoenix projects.","archived":false,"fork":false,"pushed_at":"2021-08-28T20:50:42.000Z","size":7048,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-18T19:10:49.814Z","etag":null,"topics":["ecto","elixir","elixir-lang","phoenix","phoenix-framework"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fceruti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-12T15:46:01.000Z","updated_at":"2022-05-27T03:31:56.000Z","dependencies_parsed_at":"2022-09-07T04:52:45.965Z","dependency_job_id":null,"html_url":"https://github.com/fceruti/elixir-picasso","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fceruti/elixir-picasso","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fceruti%2Felixir-picasso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fceruti%2Felixir-picasso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fceruti%2Felixir-picasso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fceruti%2Felixir-picasso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fceruti","download_url":"https://codeload.github.com/fceruti/elixir-picasso/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fceruti%2Felixir-picasso/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31522212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ecto","elixir","elixir-lang","phoenix","phoenix-framework"],"created_at":"2025-10-21T17:51:41.640Z","updated_at":"2026-04-07T17:31:20.165Z","avatar_url":"https://github.com/fceruti.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Picasso\n\nDead simple image resizing \u0026 cropping tool for phoenix projects.\n\n## Usage\n\n```elixir\nimg_url = Picasso.View.rendition_url(original, \"70x70\")\nPhoenix.HTML.Tag.img_tag(img_url)\n```\n\n## Features\n\n* Plug \u0026 Play\n* Simple API to generate image renditions\n* Integration with Kaffy\n\n## Roadmap\n\nThis library is under development. Use it if you know what you are doing.\n\n* Add S3 backend\n* Add rendition options to `generate_rendition/2`\n* Do all image transformations in elixir, droping all external dependencies (image magik)\n* Add testing\n* Add docs\n\n## Installation instructions\n\nAdd `picasso` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:picasso, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nAdd picasso config\n\n```elixir\n\nconfig :picasso,\n  ecto_repo: YourApp.Repo,\n  datastore: Picasso.Datastore.File,\n  processor: Picasso.Processor.Mogrify,\n  upload_dir: Path.join([File.cwd!(), \"priv/media/picasso\"]),\n  upload_url: \"localhost:4000/media/images\",\n\n```\n\nGenerate migrations\n\n```bash\nmix picasso.gen.migration\n```\n\n\nAdd Picasso admin resources to your kaffy config:\n\n```elixir\nuse Mix.Config\n\nconfig :kaffy,\n  otp_app: :example,\n  ecto_repo: Example.Repo,\n  router: ExampleWeb.Router,\n  resources: \u0026Example.Kaffy.Config.create_resources/1\n\ndefmodule Example.Kaffy.Config do\n  def create_resources(_conn) do\n    [] ++ Picasso.Kaffy.Config.resources()\n  end\nend\n```\n\nAdd image serving plug in your `endpoint.ex` for local dev:\n\n```elixir\n\nplug Plug.Static,\n  at: \"/media/images\",\n  from: Path.expand('priv/media/picasso'),\n  gzip: false\n\n```\n\n* Note that `at` is related to config's `:upload_url` and `from` to `upload_dir`\n\n\nYou'll also want to update the max upload file size at `endpoint.ex`\n\n\n```elixir\n  plug Plug.Parsers,\n    parsers: [:urlencoded, {:multipart, length: 20_000_000}, :json],\n    pass: [\"*/*\"],\n    json_decoder: Phoenix.json_library()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffceruti%2Felixir-picasso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffceruti%2Felixir-picasso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffceruti%2Felixir-picasso/lists"}