robbiepaul / cloudconvert-laravel

A Laravel wrapper for the CloudConvert API
177 stars 34 forks source link

Issues with density (Laravel 4.2) #15

Closed janmikusch closed 8 years ago

janmikusch commented 8 years ago

Hey, i have some issues when I'm converting my files. The Image-Files are resizing correctly, but the density won't change to 72.

Here is my code. CloudConvert::file('upload/'.$filename)->withOptions([ 'resize' => $newWidth.'x'.$newHeight, 'density' => '72' ])->to('files/img/'.$fn.'.jpg');

I'm using Laravel 4.2

robbiepaul commented 8 years ago

Have you tried the same with but with the API Console? Just to make sure it's not an API issue.

https://cloudconvert.com/apiconsole

(take note of the converteroptions)

janmikusch commented 8 years ago

I did it with the API Console. Same result. $api->convert([ "input" => "upload", "inputformat" => "jpg", "outputformat" => "jpg", "converteroptions" => [ "resize" => "720x480", "density" => "72", ], "file" => fopen('input.jpg', 'r'), ]) ->wait() ->download();

The density won't change.

josiasmontag commented 8 years ago

Hi, it seems to be an API issue and it is not related to the Laravel wrapper. Could you please quickly send your input.jpg to support@cloudconvert.com for further testing. Thanks.

robbiepaul commented 8 years ago

Many thanks @josiasmontag