{"_id":"@cogita/plugin-images","_rev":"7-0b4f81b186ff3ca800f90cd08b903bc6","name":"@cogita/plugin-images","dist-tags":{"latest":"1.0.7"},"versions":{"0.2.0":{"name":"@cogita/plugin-images","version":"0.2.0","keywords":["cogita","plugin","images","cover","virtual-module","rspress"],"author":{"name":"wu9o","email":"https://github.com/wu9o"},"license":"MIT","_id":"@cogita/plugin-images@0.2.0","maintainers":[{"name":"wu9o","email":"wu9ors@gmail.com"}],"homepage":"https://github.com/wu9o/cogita/tree/main/plugins/images#readme","bugs":{"url":"https://github.com/wu9o/cogita/issues"},"dist":{"shasum":"62cb315fc4921931b25c9ecb23add79dbb40baef","tarball":"https://registry.npmjs.org/@cogita/plugin-images/-/plugin-images-0.2.0.tgz","fileCount":12,"integrity":"sha512-jb70oBBf/u6idY9yrSPCjZi5IWQKnp08yNsUzqjx3AWdAyoneh/WyDGaNd6dq6+D+7FeM/TqOdY941ZRUQCzWQ==","signatures":[{"sig":"MEQCIH7YZGfriaHX2ut8jEwfhr07++TzJX0HuuARWrbOH8tiAiB6qNgRJYxI+HNr8GNrC8m7Xkkr116UFosgeJPs+NzRaw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16927},"main":"./dist/index.js","type":"module","_from":"file:cogita-plugin-images-0.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"rslib build -w","build":"rslib build","clean":"rm -rf dist"},"_npmUser":{"name":"wu9o","email":"wu9ors@gmail.com"},"_resolved":"/tmp/de6d799418501bc313cfe874639248af/cogita-plugin-images-0.2.0.tgz","_integrity":"sha512-jb70oBBf/u6idY9yrSPCjZi5IWQKnp08yNsUzqjx3AWdAyoneh/WyDGaNd6dq6+D+7FeM/TqOdY941ZRUQCzWQ==","repository":{"url":"git+https://github.com/wu9o/cogita.git","type":"git","directory":"plugins/images"},"_npmVersion":"10.8.2","description":"公共图片清单与文章封面元数据插件。","directories":{},"_nodeVersion":"18.20.8","dependencies":{"glob":"^11.0.0","image-size":"^2.0.2","@rspress/core":"^1.45.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@rslib/core":"0.11.2","@types/node":"^18.11.17","@cogita/config":"0.0.0","@cogita/shared":"0.0.4","rsbuild-plugin-publint":"^0.3.3","@cogita/plugin-posts-frontmatter":"0.0.3"},"peerDependencies":{"@cogita/plugin-posts-frontmatter":"0.0.3"},"_npmOperationalInternal":{"tmp":"tmp/plugin-images_0.2.0_1787289196852_0.48523862750218805","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@cogita/plugin-images","version":"1.0.0","keywords":["cogita","plugin","images","cover","virtual-module","rspress"],"author":{"name":"wu9o","email":"https://github.com/wu9o"},"license":"MIT","_id":"@cogita/plugin-images@1.0.0","maintainers":[{"name":"wu9o","email":"wu9ors@gmail.com"}],"homepage":"https://github.com/wu9o/cogita/tree/main/plugins/images#readme","bugs":{"url":"https://github.com/wu9o/cogita/issues"},"dist":{"shasum":"1ebb11a004afac66114af95bf3c6ee7d75832278","tarball":"https://registry.npmjs.org/@cogita/plugin-images/-/plugin-images-1.0.0.tgz","fileCount":12,"integrity":"sha512-kXU0RRARnEGoHN3b7VZCsS6Rno902SnwXgOtg71MbZuT+fgXzy0BX7mwTOthjLrJWuw7j+FYiYrAZmGP4B/BbA==","signatures":[{"sig":"MEQCICU72wP35s/TAhqxHXWRS1Yw64slriS1aRxCIpDxAGYgAiBvU80LdrzHLjP0RaBaZ/20T/GgDHMXcJXLFw3NoqgrKg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQD8MgRAM+Aq+PGqfCR9kMTK3EhqjnIkkd5AC52ak2O3cAIhAJms4aIM2lbG28b0ch9gKU0BjlI5L7ZtZRA01YiDacKz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16927},"main":"./dist/index.js","type":"module","_from":"file:cogita-plugin-images-1.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"rslib build -w","build":"rslib build","clean":"rm -rf dist"},"_npmUser":{"name":"wu9o","email":"wu9ors@gmail.com"},"_resolved":"/tmp/232ae76445f0cd700dcaa8a0a70dc722/cogita-plugin-images-1.0.0.tgz","_integrity":"sha512-kXU0RRARnEGoHN3b7VZCsS6Rno902SnwXgOtg71MbZuT+fgXzy0BX7mwTOthjLrJWuw7j+FYiYrAZmGP4B/BbA==","repository":{"url":"git+https://github.com/wu9o/cogita.git","type":"git","directory":"plugins/images"},"_npmVersion":"10.8.2","description":"公共图片清单与文章封面元数据插件。","directories":{},"_nodeVersion":"18.20.8","dependencies":{"glob":"^11.0.0","image-size":"^2.0.2","@rspress/core":"^1.45.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@rslib/core":"0.11.2","@types/node":"^18.11.17","@cogita/config":"0.0.0","@cogita/shared":"0.2.0","rsbuild-plugin-publint":"^0.3.3","@cogita/plugin-posts-frontmatter":"0.1.0"},"peerDependencies":{"@cogita/plugin-posts-frontmatter":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-images_1.0.0_1787300417037_0.8676293329352132","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@cogita/plugin-images","version":"1.0.1","keywords":["cogita","plugin","images","cover","virtual-module","rspress"],"author":{"name":"wu9o","email":"https://github.com/wu9o"},"license":"MIT","_id":"@cogita/plugin-images@1.0.1","maintainers":[{"name":"wu9o","email":"wu9ors@gmail.com"}],"homepage":"https://github.com/wu9o/cogita/tree/main/plugins/images#readme","bugs":{"url":"https://github.com/wu9o/cogita/issues"},"dist":{"shasum":"a3b7f8bb1157ad0a7dde05245d3233ce0c166d20","tarball":"https://registry.npmjs.org/@cogita/plugin-images/-/plugin-images-1.0.1.tgz","fileCount":12,"integrity":"sha512-OGMzxoZ9lZw7bg8mFyrj4PG+q44uHXNJzXUwK+8syjhPwwj9vh8MzV2pv8gGOoe0mvUOnu55JCYMjZIU7wtR7w==","signatures":[{"sig":"MEUCIQDx6jRTeHUvvO7t2Ey1fzgxB0pbjF4gB64MYSUUXuVuewIgfxbC08h2vm+yaQdnUlC6+d7tNxfOUGf0ssbZsMQQvcU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIGImZlaDBJ0tadobgxXXL8uGt/m4FXZymIT4Uo652fkFAiEA5poCQ3E98PSo5NFC+doBLn6nunTU28oo8iohyMeUNuU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16927},"main":"./dist/index.js","type":"module","_from":"file:cogita-plugin-images-1.0.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"rslib build -w","build":"rslib build","clean":"rm -rf dist"},"_npmUser":{"name":"wu9o","email":"wu9ors@gmail.com"},"_resolved":"/tmp/915b5dc97363eae96906529bebf47d77/cogita-plugin-images-1.0.1.tgz","_integrity":"sha512-OGMzxoZ9lZw7bg8mFyrj4PG+q44uHXNJzXUwK+8syjhPwwj9vh8MzV2pv8gGOoe0mvUOnu55JCYMjZIU7wtR7w==","repository":{"url":"git+https://github.com/wu9o/cogita.git","type":"git","directory":"plugins/images"},"_npmVersion":"10.8.2","description":"公共图片清单与文章封面元数据插件。","directories":{},"_nodeVersion":"18.20.8","dependencies":{"glob":"^11.0.0","image-size":"^2.0.2","@rspress/core":"^1.45.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@rslib/core":"0.11.2","@types/node":"^18.11.17","@cogita/config":"0.0.0","@cogita/shared":"0.8.0","rsbuild-plugin-publint":"^0.3.3","@cogita/plugin-posts-frontmatter":"0.1.1"},"peerDependencies":{"@cogita/plugin-posts-frontmatter":"0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/plugin-images_1.0.1_1787553881811_0.5206676560643297","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@cogita/plugin-images","version":"1.0.2","keywords":["cogita","plugin","images","cover","virtual-module","rspress"],"author":{"name":"wu9o","email":"https://github.com/wu9o"},"license":"MIT","_id":"@cogita/plugin-images@1.0.2","maintainers":[{"name":"wu9o","email":"wu9ors@gmail.com"}],"homepage":"https://github.com/wu9o/cogita/tree/main/plugins/images#readme","bugs":{"url":"https://github.com/wu9o/cogita/issues"},"dist":{"shasum":"5fbc3986fd13f1c6287610c781084339a1d219da","tarball":"https://registry.npmjs.org/@cogita/plugin-images/-/plugin-images-1.0.2.tgz","fileCount":12,"integrity":"sha512-p1dUTle7U9bI3S+xeOVLssCmL6sVQg7CCWR60aEAtRebGOUkFZl39VkwYxKk9tGzkeU4rm/N26qYkPf/55aayQ==","signatures":[{"sig":"MEQCIE/LBGEqdN6Kk/RmvV9buZ2uFaUMTqNot9GW0ubzU3QJAiAkHzuai7OWl6izjg8ApoWcPxD6bxsTdCrAuxEVpoSW5A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIGg57YXmG7MB7xyzGEETcSyFOPV/Y5DcLX4oRQEmsuHWAiB0I6MhzaY61yuZeGAU2vX4zUZtT6pNfgsAYWhv5HlRLg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17407},"main":"./dist/index.js","type":"module","_from":"file:cogita-plugin-images-1.0.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"rslib build -w","build":"rslib build","clean":"rm -rf dist"},"_npmUser":{"name":"wu9o","email":"wu9ors@gmail.com"},"_resolved":"/tmp/937078c6620a2531e6ed26163ae6eb07/cogita-plugin-images-1.0.2.tgz","_integrity":"sha512-p1dUTle7U9bI3S+xeOVLssCmL6sVQg7CCWR60aEAtRebGOUkFZl39VkwYxKk9tGzkeU4rm/N26qYkPf/55aayQ==","repository":{"url":"git+https://github.com/wu9o/cogita.git","type":"git","directory":"plugins/images"},"_npmVersion":"10.8.2","description":"公共图片清单与文章封面元数据插件。","directories":{},"_nodeVersion":"18.20.8","dependencies":{"glob":"^11.0.0","image-size":"^2.0.2","@rspress/core":"^1.45.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@rslib/core":"0.11.2","@types/node":"^18.11.17","@cogita/config":"0.0.0","@cogita/shared":"0.9.0","rsbuild-plugin-publint":"^0.3.3","@cogita/plugin-posts-frontmatter":"0.1.1"},"peerDependencies":{"@cogita/plugin-posts-frontmatter":"0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/plugin-images_1.0.2_1787567007735_0.4068973201992423","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@cogita/plugin-images","version":"1.0.3","keywords":["cogita","plugin","images","cover","virtual-module","rspress"],"author":{"name":"wu9o","email":"https://github.com/wu9o"},"license":"MIT","_id":"@cogita/plugin-images@1.0.3","maintainers":[{"name":"wu9o","email":"wu9ors@gmail.com"}],"homepage":"https://github.com/wu9o/cogita/tree/main/plugins/images#readme","bugs":{"url":"https://github.com/wu9o/cogita/issues"},"dist":{"shasum":"3c0d9ec9f6d437bbd729dc77abd5b95866adb91e","tarball":"https://registry.npmjs.org/@cogita/plugin-images/-/plugin-images-1.0.3.tgz","fileCount":12,"integrity":"sha512-zozepb70oet46+46J1Y6ak5H2xUxPNIq7f3Hj0gA1KOoVT0gDLYUxBSh/ky5Bi6WqxigqMipb+YTBnyNT79tqg==","signatures":[{"sig":"MEUCIQDEH3U3Khv1uYRCsTKGjjQE/hWbaaSpOy36G8urkAF+PQIgPNSoqWhLdbdXcCZ8OPS/6vakUWRTd4GqVb/nn2K+zV0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQD3W5kQSTFQUutTKHIFHgqa05LVFRnczgaFaOfWSwo4wAIgVvWWLYGUuGDkKmpCDBTEXeyADx+xnbUMrESAFrMC2bA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17602},"main":"./dist/index.js","type":"module","_from":"file:cogita-plugin-images-1.0.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"rslib build -w","build":"rslib build","clean":"rm -rf dist"},"_npmUser":{"name":"wu9o","email":"wu9ors@gmail.com"},"_resolved":"/tmp/145a4524fdada60430d6fa2f1e40ad48/cogita-plugin-images-1.0.3.tgz","_integrity":"sha512-zozepb70oet46+46J1Y6ak5H2xUxPNIq7f3Hj0gA1KOoVT0gDLYUxBSh/ky5Bi6WqxigqMipb+YTBnyNT79tqg==","repository":{"url":"git+https://github.com/wu9o/cogita.git","type":"git","directory":"plugins/images"},"_npmVersion":"10.8.2","description":"公共图片清单与文章封面元数据插件。","directories":{},"_nodeVersion":"18.20.8","dependencies":{"glob":"^11.0.0","image-size":"^2.0.2","@rspress/core":"^1.45.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@rslib/core":"0.11.2","@types/node":"^18.11.17","@cogita/config":"0.0.0","@cogita/shared":"0.10.0","rsbuild-plugin-publint":"^0.3.3","@cogita/plugin-posts-frontmatter":"0.1.2"},"peerDependencies":{"@cogita/plugin-posts-frontmatter":"0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/plugin-images_1.0.3_1787639266977_0.0823786161781972","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@cogita/plugin-images","version":"1.0.4","keywords":["cogita","plugin","images","cover","virtual-module","rspress"],"author":{"name":"wu9o","email":"https://github.com/wu9o"},"license":"MIT","_id":"@cogita/plugin-images@1.0.4","maintainers":[{"name":"wu9o","email":"wu9ors@gmail.com"}],"homepage":"https://github.com/wu9o/cogita/tree/main/plugins/images#readme","bugs":{"url":"https://github.com/wu9o/cogita/issues"},"dist":{"shasum":"d1079475467d536a876a3f6a45b245d27d36b893","tarball":"https://registry.npmjs.org/@cogita/plugin-images/-/plugin-images-1.0.4.tgz","fileCount":12,"integrity":"sha512-HG5QJ+Uh+43GS6uUvjwyUuu47ZDMY3iubkstcKma1q+1ePSdyFP33lrRKekggoQ86lB/B++5SioO0ozpDos9EA==","signatures":[{"sig":"MEQCIBV/JTOUc2Med+xOD5YmX7fHgFIkYh4doSk8Viwmh4WvAiAGHDJt9uYmicp6UBy62hWKWEqHv3DqvQV7k29AY7QuIA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQClgOh/H/dBHho+GxoW0bAEjFxLPfOVOq49HeCTaFznIwIhAJWZe6RaFzQ20Sx95UZofqcMyD0WECxUmSPWrr+2X9XK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17263},"main":"./dist/index.js","type":"module","_from":"file:cogita-plugin-images-1.0.4.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"rslib build -w","test":"pnpm build && node --test tests/*.test.mjs","build":"rslib build","clean":"rm -rf dist"},"_npmUser":{"name":"wu9o","email":"wu9ors@gmail.com"},"_resolved":"/tmp/7b6e49e66b530f16cb0b82d9fe7543ad/cogita-plugin-images-1.0.4.tgz","_integrity":"sha512-HG5QJ+Uh+43GS6uUvjwyUuu47ZDMY3iubkstcKma1q+1ePSdyFP33lrRKekggoQ86lB/B++5SioO0ozpDos9EA==","repository":{"url":"git+https://github.com/wu9o/cogita.git","type":"git","directory":"plugins/images"},"_npmVersion":"10.8.2","description":"公共图片清单与文章封面元数据插件。","directories":{},"_nodeVersion":"18.20.8","dependencies":{"glob":"^11.0.0","image-size":"^2.0.2","@rspress/core":"^1.45.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@rslib/core":"0.11.2","@types/node":"^18.11.17","@cogita/config":"0.0.0","@cogita/shared":"0.11.0","rsbuild-plugin-publint":"^0.3.3"},"_npmOperationalInternal":{"tmp":"tmp/plugin-images_1.0.4_1787725091378_0.37190499914491415","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"_id":"@cogita/plugin-images@1.0.7","bugs":{"url":"https://github.com/wu9o/cogita/issues"},"dist":{"shasum":"db57622f92da0afa57d65f8a6e9de930d577b1b1","tarball":"https://registry.npmjs.org/@cogita/plugin-images/-/plugin-images-1.0.7.tgz","fileCount":14,"integrity":"sha512-lDUUyttV6gX3aGqRYlefqNTDfPzXxZ8hBJEQsQhMTCqWdiCOqw112OC+cXF0vKDt/rfD2r+gSbFjO5PkUVVUCA==","signatures":[{"sig":"MEUCIQDQ5icm6yrUC6pFTi8K+mSb+XTCZstTUS1HL51pybDFtwIgEotXpazL95L4wWw9yyLzKc1E8TIgUIxJl63Sl9MWUS0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCgOVeqpqqkGxgawzBHoexsxEaxI0jlB9yUWT+RAbOdTQIhAPuxmYGLF/y7XSk7fFxk9e7oQynZ0uSnnXfCaFVxqCj4"}],"unpackedSize":20352},"main":"./dist/index.js","name":"@cogita/plugin-images","type":"module","_from":"file:cogita-plugin-images-1.0.7.tgz","types":"./dist/index.d.ts","author":{"name":"wu9o","email":"https://github.com/wu9o"},"module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"license":"MIT","scripts":{"dev":"rslib build -w","test":"pnpm build && node --test tests/*.test.mjs","build":"rslib build","clean":"rm -rf dist"},"version":"1.0.7","_npmUser":{"name":"wu9o","email":"wu9ors@gmail.com"},"homepage":"https://github.com/wu9o/cogita/tree/main/plugins/images#readme","keywords":["cogita","plugin","images","cover","virtual-module","rspress"],"_resolved":"/tmp/9fd808b7f1be4d1ee1b6ed1e364dce82/cogita-plugin-images-1.0.7.tgz","_integrity":"sha512-lDUUyttV6gX3aGqRYlefqNTDfPzXxZ8hBJEQsQhMTCqWdiCOqw112OC+cXF0vKDt/rfD2r+gSbFjO5PkUVVUCA==","repository":{"url":"git+https://github.com/wu9o/cogita.git","type":"git","directory":"plugins/images"},"_npmVersion":"10.8.2","description":"公共图片清单与文章封面元数据插件。","directories":{},"maintainers":[{"name":"wu9o","email":"wu9ors@gmail.com"}],"_nodeVersion":"18.20.8","dependencies":{"glob":"^11.0.0","image-size":"^2.0.2","@rspress/core":"^1.45.1","@cogita/shared":"0.13.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@rslib/core":"0.11.2","@types/node":"^18.11.17","@cogita/config":"0.0.0","rsbuild-plugin-publint":"^0.3.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-images_1.0.7_1788405045064_0.20546299824562242"}}},"time":{"created":"2026-08-21T05:13:16.615Z","modified":"2026-09-03T03:10:45.346Z","0.2.0":"2026-08-21T05:13:17.030Z","1.0.0":"2026-08-21T08:20:17.167Z","1.0.1":"2026-08-24T06:44:41.900Z","1.0.2":"2026-08-24T10:23:27.818Z","1.0.3":"2026-08-25T06:27:47.062Z","1.0.4":"2026-08-26T06:18:11.549Z","1.0.7":"2026-09-03T03:10:45.145Z"},"bugs":{"url":"https://github.com/wu9o/cogita/issues"},"author":{"name":"wu9o","email":"https://github.com/wu9o"},"license":"MIT","homepage":"https://github.com/wu9o/cogita/tree/main/plugins/images#readme","keywords":["cogita","plugin","images","cover","virtual-module","rspress"],"repository":{"url":"git+https://github.com/wu9o/cogita.git","type":"git","directory":"plugins/images"},"description":"公共图片清单与文章封面元数据插件。","maintainers":[{"name":"wu9o","email":"wu9ors@gmail.com"}],"readme":"# @cogita/plugin-images\n\n为 Cogita 提供公共图片清单、文章封面校验、使用统计和 `virtual-images-data` 运行时模块。\n\n该插件声明依赖 `content.posts` 能力，通过 Core 注入的共享内容索引读取文章封面信息，不直接依赖文章扫描插件。\n\n插件默认启用；设置 `images.enabled: false` 时不会注册图片能力，也不会参与构建。\n\n第一阶段只扫描项目 `public/images` 下的图片。文章 frontmatter 可以使用：\n\n```yaml\nimage: /images/example.png\nimageAlt: 示例图片\nimageCaption: 图片说明\n```\n\nMarkdown 正文中的相对图片仍由 Rspress 原生处理。\n\n二期 A 增加了可选的封面可访问性提示和使用关系索引：\n\n```ts\nimages: {\n  warnOnMissingAlt: true,\n}\n```\n\n运行时可以从 `virtual-images-data` 读取 `imageUsage`，并通过 `getUnusedImages()` 找到没有被文章封面引用的公共图片。正文图片的 lightbox 交互仍由 Rspress 原生能力负责。\n\n独立 Markdown 图片可以使用标准 title 语法生成说明文字：\n\n```md\n![示例图片](/images/example.png \"图片说明\")\n```\n\n图片插件会把只有一张图片的段落转换为带有 `cogita-image-figure` 类名的 `figure`，并将 title 放入 `figcaption`。带有其他文字的段落和没有 title 的图片保持 Rspress 原始输出；图片放大仍由 Rspress 原生能力负责。\n\nRspress 已内置图片放大能力，Cogita 通过顶层 `mediumZoom` 配置透传其选择器和选项，不在图片插件中重复引入交互依赖：\n\n```ts\nmediumZoom: {\n  selector: '.rspress-doc p > img',\n}\n```\n","readmeFilename":"README.md"}