Skip to content
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

How to set size of the thumbnail? #29

Open
mowais-ac opened this issue Mar 31, 2020 · 4 comments
Open

How to set size of the thumbnail? #29

mowais-ac opened this issue Mar 31, 2020 · 4 comments

Comments

@mowais-ac
Copy link

As I see getThumbnail() function, it doesn't accept width and height as argument,
Can anyone guide me how can I set the width and height of the image?

$video_path = $path . '/' .$filename;
$thumbnail_path = public_path().'/uploads/tutorial-thumbnails';
$thumbnail_filename = $originalFilenameWithExt . '.jpg';
$time_to_image = 1;
$thumbnail_width  = 320;
$thumbnail_height = 240;

$thumbnail = new Thumbnail();
$thumbnail_status = $thumbnail->getThumbnail($video_path, $thumbnail_path, $thumbnail_filename, $time_to_image);

Thanks in Advance

@lakshmaji
Copy link
Owner

You can configure it in .env file . You can refer here

Set the following in .env file

#Thumbnail image dimensions
THUMBNAIL_IMAGE_WIDTH  = 320
THUMBNAIL_IMAGE_HEIGHT = 240

@ramkumawathis
Copy link

When i set the #Thumbnail image dimensions
THUMBNAIL_IMAGE_WIDTH = 320
THUMBNAIL_IMAGE_HEIGHT = 240

Then the thumb image show in comprise mode.
But i want to need original size with water mas

How can i do it

@ramkumawathis
Copy link

With the water mas and image dimension:-
image

Without water mas
image

@lakshmaji
Copy link
Owner

Could you check whether the image that is using for watermark has opacity / blur radius !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants