Generate thumbnail of video file dropzone.js - dropzone.js

I had put thumbnailWidth and thumbnailHeight in dropzone configuration but not getting thumbnail for video that I uploaded . Can someone tell me do dropzone.js automatically generates video thumbnails?

Related

How to determine image uploaded route laravel-filemanager

I'm using "standalone button" for many pages on website (product/create.blade.php, banner/create.blade.php, ...)
$('#lfm').filemanager('image');
And i also call an image handler event after the image is uploaded,
based on the answer of Sti3bas: https://laracasts.com/discuss/channels/tips/resize-and-optimize-images-upon-upload-with-laravel-filemanager
But all uploaded images are resized, i just want the images of the product to change, so is there any way to determine the image uploaded from the product/create.blade.php page in the "ResizeUploadedImage" event.

TinyMCE - Image Tools Plugin - Converting to blob

I'm using TinyMCE 4 + Image Tools Plugin.
When I use the cropping/rotation or any other image edit option, the resulting image is saved as a blob.
When I view the HTML source code, all the images are saved as blob.
I want to get it as a base64 image.
Please help.
Thanks in advance.
Those blob images will be sent to the server as Base64 images. If you configure TinyMCE to process these images as documented here:
https://www.tinymce.com/docs/advanced/handle-async-image-uploads/
...when the data arrives at the server they will be Base64 images. The browser shows blob URLs to avoid showing you a very long Base64 binary string.

I'm generating a pdf with laravel-dompdf and I am using server path to show images in the pdf. Is it secure?

I am using laravel-dompdf to generate a pdf but to show images in that pdf I tried the route and controller approach but it's working for webpage but not for pdf. That's I am using the server path (/home/shashank/work/jobs/storage/app/{{$photo}}).
I want to know if it's safe or not.

Fine Uploader - Using server-side generated thumbnails for the "Initial File List"

I saw a couple of messages about this topic, but I still haven't found how to make Fine Uploader use thumbnails generated by the server for the Initial File List files.
I use a "traditional" server-side Fine Uploader implementation, for pictures upload, as described in the Getting Started section. But I also want to use Fine Uploader as a gallery to show already uploaded pictures, so I use the "session" config to populate it, when it loads...
This works, but Fine Uploader creates Base64 images for those already uploaded images, even if I return a thumbnailUrl property for each of them, pointing to already resized thumbnails... Indeed, when I upload pictures, I generate thumbnails on the server, by myself. I want Fine Uploader to display those thumbnails when the "Initial File List" is received. How can I achieve this?
I've read about the drawThumbnail() function, but I don't know exactly how to use it. Should I call it manually in the onSessionRequestComplete event? Will that prevent Fine Uploader to create Base64 thumbnails by itself?

How to display pdf content inside fancybox as pdf document in rails

I am using fancybox in my rails applicaiton , I want to display server side pdf response in fancybox ,but I am not sure how to do this .
I did the like this
I am reading pdf file data and sending pdf response from server , on view I need to display this pdf response in fancybox how to do this .
or any alternate way that I can show a pdf in fancybox instead download pdf from the server when requesting server.
###my_controller.rb
def show
#pdf_data = File.open(doc.image).read.force_encoding('BINARY')
format.js {}
end
From the above line it states that I am reading pdf file data(doc.image refers location of the pdf file) , Now I need to display this pdf content in fancy box ,so I did like the following on the view side
## show.js.erb
$("#pdfview").html("<%= #pdf_data %>")
$("#inline").trigger('click')
I applied fancybox() for #inline which is id of anchor tag.
Can anyone help me how to do this or any alternate that I can make pdf from server pdf response within the fancybox in jquery or javascript?

Resources