{"id":19064960,"url":"https://github.com/netkiller/mysql-image-plugin","last_synced_at":"2025-04-28T11:25:59.720Z","repository":{"id":12190659,"uuid":"14794060","full_name":"netkiller/mysql-image-plugin","owner":"netkiller","description":"MySQL 图片处理插件","archived":false,"fork":false,"pushed_at":"2017-03-17T02:30:59.000Z","size":9,"stargazers_count":7,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-18T15:17:04.765Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://netkiller.github.io/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netkiller.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":"2013-11-29T06:17:56.000Z","updated_at":"2021-11-21T17:06:50.000Z","dependencies_parsed_at":"2022-07-21T12:48:07.333Z","dependency_job_id":null,"html_url":"https://github.com/netkiller/mysql-image-plugin","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/netkiller%2Fmysql-image-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkiller%2Fmysql-image-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkiller%2Fmysql-image-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkiller%2Fmysql-image-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netkiller","download_url":"https://codeload.github.com/netkiller/mysql-image-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251303707,"owners_count":21567738,"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":[],"created_at":"2024-11-09T00:48:03.227Z","updated_at":"2025-04-28T11:25:59.688Z","avatar_url":"https://github.com/netkiller.png","language":"C","funding_links":["https://www.paypal.me/netkiller"],"categories":[],"sub_categories":[],"readme":"mysql-image-plugin\n==================\n\n[![Join the chat at https://gitter.im/netkiller/mysql-image-plugin](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/netkiller/mysql-image-plugin?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nBuild\n-----\n\tcd /usr/local/src/\n\tgit clone https://github.com/netkiller/mysql-image-plugin.git\n \tcd mysql-image-plugin/\n \tyum install cmake\n\n\tcmake .\n\tmake \u0026\u0026 make install\n\t\n\tor\n\t\n\tgcc -O3  -g  -I/usr/include/mysql -I/usr/include/sys  -fPIC -shared -o libimage.so image.c\n\tsudo mv libimage.so /usr/lib/mysql/plugin/\n\t\nSetup\n-----\n\tmysql\u003e create function image_check returns string soname 'libimage.so';\n\tQuery OK, 0 rows affected (0.44 sec)\n\nTest\n----\n\tmysql\u003e select image_check('/www/images/logo.png');\n\t\nPlugin\n------\n\n### Install\n\t\n\tcreate function image_check returns string soname 'libimage.so';\n\tcreate function image_remove returns string soname 'libimage.so';\n\tcreate function image_rename returns string soname 'libimage.so';\n\tcreate function image_crc32 returns string soname 'libimage.so';\n\tcreate function image_move returns string soname 'libimage.so';\n\n### Uninstall\n\n\tdrop function image_check;\n\tdrop function image_remove;\n\tdrop function image_rename;\n\tdrop function image_crc32;\n\tdrop function image_move;\n\nExample \n-------\t\n\tselect image_check('/path/filename.ext');\n\tselect image_remove('/path/filename.ext');\n\tselect image_rename('/path/oldfile.ext','/path/newfile.ext');\n\tselect image_crc32('/path/filename.ext');\n\tselect image_move('/path/filename.ext','/path/to/newfile.ext');\n\n# Donations\n\nWe accept PayPal through:\n\nhttps://www.paypal.me/netkiller\n\nWechat (微信) / Alipay (支付宝) 打赏:\n\nhttp://www.netkiller.cn/home/donations.html\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/netkiller/mysql-image-plugin/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetkiller%2Fmysql-image-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetkiller%2Fmysql-image-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetkiller%2Fmysql-image-plugin/lists"}