All Projects → hezhizheng → free-pic

hezhizheng / free-pic

Licence: MIT license
free-pic 一个第三方免费图床扩展包 free image-hosting

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to free-pic

Gopherkon
Go mascot image constructor. Create your cute own gopher.
Stars: ✭ 86 (+290.91%)
Mutual labels:  picture, free
Slicer
Photon Open Slicer - Command Line Slicer usable as MeshMixer plugin or as standalone
Stars: ✭ 50 (+127.27%)
Mutual labels:  free
Picpic
A awesome image host service driven by github pages and github actions.
Stars: ✭ 135 (+513.64%)
Mutual labels:  picture
Quick Picture Viewer
🖼️ Lightweight, versatile desktop image viewer for Windows. The best replacement for the default Windows photo viewer.
Stars: ✭ 237 (+977.27%)
Mutual labels:  picture
Imgpush
Minimalist Self-hosted Image Service for user submitted images in your app
Stars: ✭ 144 (+554.55%)
Mutual labels:  picture
installer
The Chevereto installer CLI/HTTP single-file tooling
Stars: ✭ 24 (+9.09%)
Mutual labels:  image-hosting
Weibo image uploader
PHP 实现的微博图床上传轮子
Stars: ✭ 129 (+486.36%)
Mutual labels:  picture
ThePhish
ThePhish: an automated phishing email analysis tool
Stars: ✭ 676 (+2972.73%)
Mutual labels:  free
Exif-Grabber
A python tool that will extract exif data from picture with two methods
Stars: ✭ 31 (+40.91%)
Mutual labels:  picture
Keydecoder
KeyDecoder app lets you use your smartphone or tablet to decode your mechanical keys in seconds.
Stars: ✭ 236 (+972.73%)
Mutual labels:  picture
Imageglass
🏞 A lightweight, versatile image viewer
Stars: ✭ 3,284 (+14827.27%)
Mutual labels:  picture
Stereo Vision
This program has been developed as part of a project at the University of Karlsruhe in Germany. The final purpose of the algorithm is to measure the distance to an object by combining two webcams and use them as a Stereo Camera.
Stars: ✭ 160 (+627.27%)
Mutual labels:  picture
bannero
An image API for simpledesktops.com
Stars: ✭ 33 (+50%)
Mutual labels:  image-hosting
Scrot
SCReenshOT - command line screen capture utility
Stars: ✭ 138 (+527.27%)
Mutual labels:  picture
UnrealAssets
Free Assets for Unreal Engine
Stars: ✭ 116 (+427.27%)
Mutual labels:  free
Photato
Photato - The personal Pictures gallery
Stars: ✭ 130 (+490.91%)
Mutual labels:  picture
Medium Zoom
🔎🖼 A JavaScript library for zooming images like Medium
Stars: ✭ 2,799 (+12622.73%)
Mutual labels:  picture
Generatepicture
Select the page content generated picture.仿简书选取页面内容生成分享图片。
Stars: ✭ 242 (+1000%)
Mutual labels:  picture
Steam-Games-Idle
❤️ Node.js based script for steam game idling / hour boosting for chosen game without using computer resources. Built by @Refloow
Stars: ✭ 46 (+109.09%)
Mutual labels:  free
free-
Free节点/代理-V2
Stars: ✭ 21 (-4.55%)
Mutual labels:  free

free-pic 一个第三方免费图床扩展包

体验demo

github 地址

packagist 地址

feature

  • 三无图床("无存储限制" | "无需上传凭证" | "无同源跨域检测")
  • 简单易用、方便扩展
  • 支持 常见 "gif", "jpeg", "jpg", "png" 图片格式

支持图床

使用

下载安装

composer require hzz/free-pic dev-master

上传图片到第三方图床 (完整调用过程)

// 配置项
$config = [
    'sm' => [ // sm 需要token ,不使用可无须配置
        "token" => "Yuc4fb0BuwsOnd4y7R0zFp0tVGkxYgRa22"
    ],
    'debug' => true,
    'log' => [
        'name' => 'img_hosting',
        'file' => __DIR__ . '/img_hosting.log',
        'level' => 'debug',
        'permission' => 0777,
    ],
];

$params = [
    "filepath" => "图片的绝对路径",
];
// 实例化
$freePic = new \Hzz\FreePic($config);
// 上传 , 同理 可用 ->sm , ->freeImageHost , ->catBox 调用对应的服务
$res = $freePic->imgBB->upload($params); // 这里返回的是对应图床服务器返回的上传结果数据。
// getUrl方法 可获取实际
$url = $freePic->imgBB->getUrl($res);

详细用法可参考 tests 用例 或 upload.php

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].