摘要: 使用了Python的Pillow库 from PIL import Image Image.MAX_IMAGE_PIXELS = 2000000000 #设置最大处理像素极限 def convert_image_to_jpg(input_path, output_path, dpi=300): wi 阅读全文
posted @ 2024-05-30 11:56 露娜喵喵 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 为了让这个函数更加灵活以支持任意大小的图片和不同的分割大小,我们可以将函数的参数稍作调整,使其接受目标分割尺寸(targetSize)作为参数,而不是硬编码为10000。同时,我们可以使用整数除法(//)来确保分割的尺寸是整数,并且使用模数运算符(%)来检查是否需要进行最后一次不完全的分割。 以下是 阅读全文
posted @ 2024-05-07 09:26 露娜喵喵 阅读(1) 评论(0) 推荐(0) 编辑
摘要: convert: error while loading shared libraries: libMagickCore-7.Q16HDRI.so.10: cannot open shared object file: No such file or directory 执行 ldconfig /u 阅读全文
posted @ 2024-04-18 11:58 露娜喵喵 阅读(5) 评论(0) 推荐(0) 编辑
摘要: puppeteer/.local-chromium/linux-1002410/chrome-linux/chrome: error while loading shared libraries: libXdamage.so.1: cannot open shared object file: No 阅读全文
posted @ 2024-04-17 13:14 露娜喵喵 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 查看当前系统版本 [root@demodemo ffmpeg-6.0]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: CentOS Linux rele 阅读全文
posted @ 2024-03-30 18:30 露娜喵喵 阅读(84) 评论(0) 推荐(0) 编辑
摘要: CREATE TABLE `a` ( `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `supply_id` bigint(20) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE= 阅读全文
posted @ 2023-09-18 11:34 露娜喵喵 阅读(63) 评论(0) 推荐(0) 编辑
摘要: crontab + ThinkPHP6 配合使用 1:命令行 执行 php think make:command Hello hello php think make:command 控制器名 方法名 2:console 配置 3:测试执行 php think hello 控制台得到结果hello 阅读全文
posted @ 2023-04-03 18:25 露娜喵喵 阅读(153) 评论(0) 推荐(0) 编辑
摘要: php抛出异常Exception和\Exception使用区别 没有定义命名空间的情况下 , Exception和\Exception 均可正常执行抛出异常;定义命名空间的情况 , Exception 会在定义的命名空间下找对应的异常类 , 如果没有定义异常类 , 则会报错 ;定义命名空间的情况 , 阅读全文
posted @ 2018-06-20 15:49 露娜喵喵 阅读(14594) 评论(0) 推荐(3) 编辑
摘要: https://www.microsoft.com/zh-CN/download/details.aspx?id=30679 打开连接下载对应电脑系统的程序 进行安装 重新打开wamp即可 阅读全文
posted @ 2017-10-30 11:22 露娜喵喵 阅读(290) 评论(0) 推荐(1) 编辑
摘要: '短网址', 'status' => 0, 'longurl' => '长网址', 'err_msg' => '', ) */ function createShortUrl($url, $alias = '') { if (!$url) { return array('status' => 'error'); } $data = array( 'post_ur... 阅读全文
posted @ 2017-10-20 11:24 露娜喵喵 阅读(4971) 评论(0) 推荐(0) 编辑