{"id":19623833,"url":"https://github.com/appleple/photocollage","last_synced_at":"2026-03-01T21:34:32.944Z","repository":{"id":43798401,"uuid":"442059978","full_name":"appleple/PhotoCollage","owner":"appleple","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-11T04:41:02.000Z","size":209,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-26T19:39:12.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appleple.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-27T05:31:39.000Z","updated_at":"2022-04-12T06:35:48.000Z","dependencies_parsed_at":"2022-09-22T15:52:33.724Z","dependency_job_id":null,"html_url":"https://github.com/appleple/PhotoCollage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/appleple/PhotoCollage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2FPhotoCollage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2FPhotoCollage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2FPhotoCollage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2FPhotoCollage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleple","download_url":"https://codeload.github.com/appleple/PhotoCollage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2FPhotoCollage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29984725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T21:06:37.093Z","status":"ssl_error","status_checked_at":"2026-03-01T21:05:45.052Z","response_time":124,"last_error":"SSL_read: 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":[],"created_at":"2024-11-11T11:35:40.491Z","updated_at":"2026-03-01T21:34:32.923Z","avatar_url":"https://github.com/appleple.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PhotoCollage\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://raw.githubusercontent.com/appleple/document-outliner/master/LICENSE)\n\nA utility that changes the display method according to the aspect ratio and order of images when uploading multiple images at once.\n\n## Usage\nInclude the PhotoCollage .js/.css file in your site.\n```html\n\u003cscript src=\"/path/to/js/photocollage.bundle.js\"\u003e\u003c/script\u003e\n```\n```html\n\u003clink rel=\"stylesheet\" href=\"/path/to/css/photocollage.css\"\u003e\n```\nphotocollage.js\n```js\ndocument.addEventListener('DOMContentLoaded',function(){\n    new PhotoCollage(\".js-photocollage\");\n});\n```\n\njquery-photocollage.js\n```js\n$(function(){\n    $(\".js-photocollage\").PhotoCollage();\n});\n```\n\n### Basic Standalone Usage\nAt the time of five vertically long sheets\n```html\n\u003cdiv class=\"js-photocollage\"\u003e\n  \u003cimg src=\"example1.jpg\" width=\"480\" height=\"640\"\u003e\n  \u003cimg src=\"example2.jpg\" width=\"480\" height=\"640\"\u003e\n  \u003cimg src=\"example3.jpg\" width=\"480\" height=\"640\"\u003e\n  \u003cimg src=\"example4.jpg\" width=\"480\" height=\"640\"\u003e\n  \u003cimg src=\"example5.jpg\" width=\"480\" height=\"640\"\u003e\n\u003c/div\u003e\n\u003clink rel=\"stylesheet\" href=\"./css/photocollage.css\"\u003e\n\u003cscript src=\"./js/photocollage.bundle.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\ndocument.addEventListener('DOMContentLoaded',function(){\n  new PhotoCollage(\".js-photocollage\");\n});\n\u003c/script\u003e\n```\n\n### Option\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003cth\u003evariable\u003c/th\u003e\n\t\t\u003cth\u003edescription\u003c/th\u003e\n\t\t\u003cth\u003edefault\u003c/th\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003egap\u003c/td\u003e\n\t\t\u003ctd\u003eSpacing between images\u003c/td\u003e\n\t\t\u003ctd\u003e5px\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003esrcAttribute\u003c/td\u003e\n\t\t\u003ctd\u003eImage source\u003c/td\u003e\n\t\t\u003ctd\u003esrc\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003emargin\u003c/td\u003e\n\t\t\u003ctd\u003eAlbum spacing\u003c/td\u003e\n\t\t\u003ctd\u003e0px 0px 10px 0px\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eimgClass\u003c/td\u003e\n\t\t\u003ctd\u003eimg tag class\u003c/td\u003e\n\t\t\u003ctd\u003enone\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eaClass\u003c/td\u003e\n\t\t\u003ctd\u003ea tag class\u003c/td\u003e\n\t\t\u003ctd\u003enone\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eaAttribute\u003c/td\u003e\n\t\t\u003ctd\u003ea tag attribute\u003c/td\u003e\n\t\t\u003ctd\u003enone\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n#### Example\n```js\ndocument.addEventListener('DOMContentLoaded',function(){\n  new PhotoCollage(\".js-photocollage\",{\n    srcAttribute: \"src\",\n    gap: \"5px\",\n    margin:\"0px 0px 20px 0px\",\n    aClass: \"aExampleClass\",\n    imgClass:\"imgExampleClass\",\n    aAttribute: {\n      \"data-example1\" : \"example1\",\n      \"data-example2\" : \"example2\",\n    }\n  });\n});\n```\n\n#### When used in combination with SmartPhoto\n```js\ndocument.addEventListener('DOMContentLoaded',function(){\n        const elements = document.getElementsByClassName('js-photocollage');\n        Array.from(elements).forEach((element, index) =\u003e {\n          element.classList.add('js-photoCollage-' + index)\n          new PhotoCollage(\".js-photoCollage-\" + index,{\n          aClass: \"js-smartPhoto\",\n          aAttribute: {\n            \"data-group\": \"group-\" + index,\n            \"data-rel\": \"group-\" + index,\n          }\n        });\n        });\n        new SmartPhoto(\".js-smartPhoto\")\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleple%2Fphotocollage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleple%2Fphotocollage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleple%2Fphotocollage/lists"}