-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PSD conversion to jpg #426
Comments
Version 1.0 (current dev) does not allow to convert image format, even jpg to png. This feature was dropped while upgrading from 0.x versions (it is supported there). It will be re implemented later. Cannot say anything about psd to jpg. sorry. |
@Me1ifaro yes i am using imagick and it is converting them but it makes layer-0.jpg,layer-1.jpg,layer-2.jpg,layer-3.jpg and so on. public function read($resource)
But apparently this class Imagine.php is final.So i could not overwrite it. PSD to jpg conversion is done but now how to overwrite the final class. Where can i achieve the similar functionality. |
@wilson12, well, as I know <?php
class PsdToJpgConverter
{
private $imagine;
public function getImagine()
{
if (null === $this->imagine) {
$this->imagine = new \Imagine\Imagic\Imagine();
}
return $this->imagine;
}
//....
} Also, modifying vendor's code is bad idea, since this will not let you update it. |
I only see this as a filter. The hell this feature caused in 0.x version was huge. There are so many side effects to take care of. The filter should take care of it and not interfere with the rest of the system. |
@Me1ifaro I cannot help much on this issue cuz I know little about it. |
Not sure if this is an issue or not should the conversion happen automatically or should i modify the code
the bundle successfully does png to jpg,jpg to png
But for psd to jpg it seems to fail.
The text was updated successfully, but these errors were encountered: