cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[NFR]: Return getInternalImInstance to Imagick Adapter

Open stdnk opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe. In previous versions of the framework, it was possible to access the image driver using getInternalImInstance . In version 5 this method was removed from the adapter.

Describe the solution you'd like I'd like method to be returned to the adapter.

Thank you!

stdnk avatar Nov 23 '22 17:11 stdnk

You can use the getImage() method that comes from the AbstractAdapter. That was the reason that the getInternalImInstance() was removed.

Granted, not the best name for a method but we did not want to break compatibility.

On __construct the this->image contains the Imagick() instance.

niden avatar Nov 26 '22 19:11 niden

Thanks @niden!

stdnk avatar Nov 26 '22 21:11 stdnk