coldume / imagecraft Goto Github PK
View Code? Open in Web Editor NEWA reliable and extensible PHP image manipulation library
License: MIT License
A reliable and extensible PHP image manipulation library
License: MIT License
Hi, is it possible to improve the text quality within gif animations and custom texts?
Hi
Is there any extended documentation, with info about functions, etc ?
Also is there way to add transparency to layer ?
Regards
Is there some hard limit on frames / size of an animated GIF? I've experimented changing the memory_limit in PHP but it makes no difference. Depending on the length of the animation I seem to hit a limit when the output file size is just under 2.5Mb
It seems that the gif_animation-Option is only working for the background-layer of the compilation. If I am adding a ImageLayer with animated gif inside, the animation is not there anymore.
Hi,
I use you usefull lib.
Thx for your work.
I need an option for grayscale picture , do you think is it possible ?
Thx for your time
Hi,
first of all, thanks for this awesome work!
I've encountered a problem though:
I'm using ImageCraft to add a partitally transparent PNG image
to an animated GIF, it work perfect for any GIF between 2 and 50 frames,
but whenever I'm using an animated GIF with more than 50 frames, the finished
image is just the added PNG, the GIF "background" image is missing.
Is there a hard coded limit of 50 frames?
Thanks in advance!
There are broken images in the documentation because http://www.imagecraft.cc/ is not working anymore.
Can i resize by specify only target width ? and output image that keep ratio?
Would love to see a crop method without the fill, so you specify x, y, width, height.
Hello! Im trying this library (Awesome btw). I use to put a frame into some images for a pet project.
Now im try to pute a frame into a gif but i cant seems to do it.
Any ideas?
Is there a way to increase the limit, if yes how?
The image dimensions (4376x1925) exceed the server allowable limit.
Hello, first of all, thank you so much, this is wonderfull !
I have only one litlle probleme. As I use a .png with transparent background as addBackgroundLayer , the transparency seems not to be handled.
When trying to upload a .png file using the following code:
$builder = new ImageBuilder();
$layer = $builder->addBackgroundLayer();
$layer->filename('uploads/'.$fullname);
$layer->resize(300, 300, 'shrink');
$image = $builder->save();
if ($image->isValid()) {
// upload.
} else {
$reponse[] = ['c' => 1, 'error' => $image->getMessage()];
}
$image->getMessage() then returns:
The format "PNG" is either not supported or the file is damaged. Server supports , "PNG", "JPEG", "GIF".
I'm uploading the following image:
When I try other images it works fine however. I'm trying to figure out why this one isn't working.
I can't see any option to at least change the text alignment from the default "left". or text direction from the default "LTR".
I'm trying to resize a GIF file but it mantains the original size.
This is my code:
$target_file_name = "someimage.gif"; $options = ['engine' => 'php_gd', 'locale' => 'en']; $builder = new ImageBuilder($options); $image = $builder ->addBackgroundLayer() ->http('https://example/cd/assets/users/avatars/' . $target_file_name, -1, -1) ->resize(1024, 1024, 'shrink') ->done() ->save(); if ($image->isValid()) { $filename = $target_file_name . "_edited." . $image->getExtension(); file_put_contents('../assets/users/avatars/' . $filename, $image->getContents()); unlink($target_file); } else { echo $image->getMessage().PHP_EOL; exit(); }
when downloading the zip there is no file containing the require once for files. if i dont use composer i need to manually require once the files. can you create a require once for the files needed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.