{"id":17143016,"url":"https://github.com/rburns/photolog","last_synced_at":"2025-07-24T12:36:06.786Z","repository":{"id":7434362,"uuid":"56378301","full_name":"rburns/photolog","owner":"rburns","description":"visual journal","archived":false,"fork":false,"pushed_at":"2023-07-12T15:22:39.000Z","size":159,"stargazers_count":4,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T16:39:44.320Z","etag":null,"topics":["clojurescript","nodejs","photography","static-site-generator"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/rburns.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":"2016-04-16T10:36:39.000Z","updated_at":"2023-03-06T10:41:52.000Z","dependencies_parsed_at":"2022-08-29T03:42:59.074Z","dependency_job_id":null,"html_url":"https://github.com/rburns/photolog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rburns%2Fphotolog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rburns%2Fphotolog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rburns%2Fphotolog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rburns%2Fphotolog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rburns","download_url":"https://codeload.github.com/rburns/photolog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240067684,"owners_count":19742919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["clojurescript","nodejs","photography","static-site-generator"],"created_at":"2024-10-14T20:33:30.787Z","updated_at":"2025-02-23T07:32:34.921Z","avatar_url":"https://github.com/rburns.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# photolog [![](https://travis-ci.org/rburns/photolog.svg?branch=master)](https://travis-ci.org/rburns/photolog/branches)\nvisual journal. current status: resizes and generates metadata for a directory of images\n\n### dependencies\n\n[exiftool](http://www.sno.phy.queensu.ca/~phil/exiftool/) - propbably available in your system's package manager\n\n### building\n\n```npm run process-prod```\n\n### developing\n\n```npm run process-dev```\n\n### clean\n\n```npm run clean```\n\n### create a config file\n\nit's JSON\n\n#### required keys\n\n`img-src-dir` the path of the _directory_ containing your images\n\n`img-out-dir` the path of the _directory_ to write all your resized images\n\n`metadata-path` the path to the _file_ in which to write the image metadata\n\n`href-prefix` the string with which to prefix all image paths\n\n#### optional keys\n\n`exif-props` a list of exif properites to include in the output metadata\n\nthe default properties are _CreateDate, ExposureTime, ScaleFactor35efl, FocalLength, LensType,\nAperture, ISO, Model, GPSPosition, GPSAltitude, ImageWidth, and ImageHeight_. Prop names are those\nused by exiftool.\n\n`breakpoints` the breakpoints for resized images\n\nan array of name, width pairs. the default breakpoints are _[[\"tiny\", 200], [\"small\", 556], [\"medium\", 804], [\"large\", 1000]]_\n\n`metadata-format` the format of the output metadata. _transit_, _html_, or _atom_. defaults to transit\n\n`html-tmpl` the path of the template to be used for html output.\n\nthere is no default value. when _metadata-format_ is _html_, this key is required. the string _##PHOTOS##_ in the template will be replaced with image metadata\n\n`exif-transforms` arbitrary transformations of exif values\n\ndescribed as an array of _key_, _value_, _new-value_ triplets. example use: cleaning up camera\nnames.\n\n```\n\"exif-transforms\": [\n    [\"model\", \"Digimax A6\", \"Samsung Digimax A6\"],\n    [\"model\", \"FE190/X750\", \"Olympus FE-190\"],\n]\n```\n\n### running\n\n```\nnode ./process/main.js /path/to/config\n```\n\n### output\n\nimages in `img-src-dir` are symlinked into `img-out-dir`.  images resized relative to `breakpoints` are written to `img-out-dir`.\n\nmetadata describing the images is written to `metadata-path`. in addtion to the keys specified in\n`exif-props`, it includes the following keys:\n\n`file-created` file created timestamp\n\n`file-modified` file modified timestamp\n\n`sizes` a list of images derived from `breakpoints`.  `href` and `label` keys for each\n\n`srcset` html srcset attribute value\n\n`height-scale` the height of the image as a multiplier of it's width\n\n`href` the url of the original image prefixed with `href-prefix`\n\nkeys are formatted relative to `metatdata-format`. not all keys are present in all formats\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frburns%2Fphotolog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frburns%2Fphotolog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frburns%2Fphotolog/lists"}