分页: 1 / 1

mstodon 修改 图片和视频大小

发表于 : 2023-02-08, 01:40
admin
app/models/media_attachment.rb

代码: 全选

  IMAGE_LIMIT = 16.megabytes
  VIDEO_LIMIT = 200.megabytes

  IMAGE_STYLES = {
    original: {
      pixels: 3_686_400, # 1920x1920px
      file_geometry_parser: FastGeometryParser,
    }.freeze,


app/javascript/mastodon/utils/resize_image.js

代码: 全选

const MAX_IMAGE_PIXELS = 3686400; // 1920x1920px
大视频上传失败