Giter Site home page Giter Site logo

imagecraft's People

Contributors

coldume avatar potcfdk avatar stevecoug avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

imagecraft's Issues

Crop specific region

Would love to see a crop method without the fill, so you specify x, y, width, height.

PNG as Background, Gif as center piece.

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?

Shrinking transparent GIF images

Hello,
I've found out that there are artifacts after resizing a gif image with an alpha channel.

Before resizing:
Before

After resizing:
After

It can't be seen on white background, but you can right click on second image and then click "show image in new tab".

Is there something I can do with it?

Option for grayscale image

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

Documentation

Hi

Is there any extended documentation, with info about functions, etc ?

Also is there way to add transparency to layer ?

Regards

Background layer tansparency problem.

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.

Improve text quality

Hi, is it possible to improve the text quality within gif animations and custom texts?

FadeIn-FadeOut Layer

Hi,

I not beging able to find a way to place a text layer which appears and disappears, is it possible?

thanks in advance.

Edit: this is what I'm trying to do, as you can see I would like to emulate the fadeout (transparency) with the numbers (505, 750, ....).
Octal

Animated GIF size limits

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

gif_animation only working for Background-Layer

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.

"The format "PNG" is either not supported or the file is damaged"

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:
Image

When I try other images it works fine however. I'm trying to figure out why this one isn't working.

need autoloader for downloading

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.

Can't resize GIF image

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(); }

animated gifs - hardcoded frame limit of 50?

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!

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.