y0f/image-to-ascii

本软件包的最新版本(dev-main)没有可用的许可证信息。

使用HTML和内联CSS将图像转换为ASCII艺术

dev-main 2024-10-02 18:46 UTC

This package is auto-updated.

Last update: 2024-10-02 18:46:32 UTC


README

特性

  • 上传图片:将上传的图片转换为ASCII艺术。
  • 自定义输出:调整ASCII艺术的属性。

输入

input image

输出

output image

安装

您可以通过Composer安装此包

composer require y0f/image-to-ascii

要求

确保在您的php.ini文件中启用了GD库

extension=gd

注册服务提供者

将ImageToAsciiServiceProvider添加到您的提供者

<?php

return [
    App\Providers\AppServiceProvider::class,
    App\Providers\Filament\AdminPanelProvider::class,
    Y0f\ImageToAscii\ImageToAsciiServiceProvider::class,
];

发布视图

您可以使用以下命令发布包视图

php artisan vendor:publish --tag=image-to-ascii-views