GithubHelp home page GithubHelp logo

Comments (8)

claviska avatar claviska commented on June 10, 2024

The rotate() method takes a second argument, which can be a hex string or an RGB array:

$img->rotate(45, '#fff');

I think that's what you need :)

from simpleimage.

godbout avatar godbout commented on June 10, 2024

@claviska thanks. Strange I've overseen that, might have been tired!
Still doesn't work perfectly though, black borders appear. Happens also with other functions. Any idea?
this_is_tomorrow_tuesday_which_doesnt_make_any_sense___dailycuckoo

from simpleimage.

claviska avatar claviska commented on June 10, 2024

Not sure off the top of my head. I've reopened it so we can look into it.

from simpleimage.

godbout avatar godbout commented on June 10, 2024

Alright thanks. I'll do some test with the php functions and options themselves, your code seems fine. I'll let you know if I find something interesting.

from simpleimage.

godbout avatar godbout commented on June 10, 2024

Something interesting. If the file is a jpeg, it doesn't draw the black border. And the gaussian issue reported in #41 is, well, not an issue anymore also. But of course I can't use the invert method anymore without having a big black background.

from simpleimage.

Leanerz avatar Leanerz commented on June 10, 2024

Output must be PNG if you want get the transaprency ! JPEG - GIF and others dont support transparency ...

from simpleimage.

godbout avatar godbout commented on June 10, 2024

@RezkER might want to read again the full discussion.

from simpleimage.

claviska avatar claviska commented on June 10, 2024

I'm 99% sure this is an issue with GD. The rotate() method in SimpleImage is pretty straightforward, so there's not much we can do to fix this. It should probably be filed as a bug in the GD library.

from simpleimage.

Related Issues (20)

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.