Coder Social home page Coder Social logo

beckyeeky / telegraph-pic-uploader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ztdf123/telegraph-pic-uploader

0.0 0.0 0.0 36 KB

This script helps you upload all pictures in a folder to telegraph at once, supporting jpg,png,gif. 使用该脚本可以帮你一次性上传文件夹内所有图片到telegraph,使用方法参见README

Python 100.00%

telegraph-pic-uploader's Introduction

How to use?

See the link below. 中文版和英文版都在教程里

https://telegra.ph/Telegraph-pic-uploader-08-14

Fix requirements.txt

8.20修复了requirements.txt文件,把库的版本设置了

1.1 version update content description:

  1. Function increase: The size adjustment function has been added. For images that do not conform, the size can be modified in equal proportions (telegraph only allows images whose height and width are less than 5600px).
  2. Logic modification: Also upload all subfolders in the input folder separately.
  3. Logic modification: The title is automatically set as the folder name, no need to input.
  4. Program optimization: slightly improve the compression speed of large images.
  5. Program optimization: The default upload interval is adjusted to 2 seconds. It is recommended to set it according to your network environment.

8.28 更新1.1版本

版本更新内容说明:

  1. 功能增加:增加了尺寸调整功能,对于不符合的图片,等比例修改尺寸(telegraph只允许高和宽都小于 5600px 的图片)。
  2. 逻辑修改:对输入文件夹内的所有子文件夹也分别进行上传。
  3. 逻辑修改:标题自动设置为文件夹名称,不需要输入。
  4. 程序优化:略微提升大图片压缩速度。
  5. 程序优化:默认上传间隔时间调整为2秒,建议根据你的网络环境自行设置。

2024.06.06 1.2版本

版本更新内容说明:

  1. 替换 Image.ANTIALIAS 为 Image.LANCZOS。
  2. 改善可读性

2024.06.06 1.3版本

  1. 将一些配置项(如代理设置、最大图片尺寸、压缩参数等)提取到配置变量中,便于调整和维护。
  2. 使用独立的函数来处理图片压缩、尺寸调整和文件上传,提高代码的模块化和复用性。

telegraph-pic-uploader's People

Contributors

beckyeeky avatar ztdf123 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.