I want to make thumbnails of pdf,images and video file using angularjs
I found one git example for that
https://github.com/aztech-digital/angular-thumbnails
Please go through the link i have tried this but i am new in angularjs and I dont know how to call a directive.
Please help me to implement this i am using php codeigniter with angularjs
what I want is I have an option to upload multiple files which will contain pdf,doc,docx,xls,mpg,jpg etc.I want to create a thumbnail of all these type of files. for eg: if a case I am uploading pdf the first page of pdf should be the thumbnail of that file.
how i can implement this example
here i saw one example which will create only for images
Thank you
Related
I am using an package called laravel-dropbox. I am using it and find very helpful too. But now I am in a little bit trouble while I need to generate the link of files so that I can show the images which I have been uploaded so it will be better I will get the all files and folder with their links then it will me a lot. Currently I am getting all the files and folders and its working fine from below method
return \Dcblogdev\Dropbox\Facades\Dropbox::files()->listContents($query);
like after using this method I am getting the following output
but here I dont get the links so that I can't show the uploaded images to my website. So, please help me so that I can show user the uploaded images of dropbox into my website like below response
Please Help me to get the desired result
Hi guys I could use some help on getting absolute URL links to show images with cakePHP without HTML helper.
So I wrote a webservice(webservice communicates in json) for an application that is being ran on iOS. Now the problem is people can upload images from the application to my webservice, they get stored in webroot/uploads folder.
Now I want to show the images on my application in real size if they click on them(using thumbnails for the smaller ones, using a controller which creates thumbnails) the problem is when I point out to webservice.com/uploads/imagename, it says controller uploads can not be found(pretty obivous but hey). So my question is how can I get the absolute links to the images without needing a controller, so when I go to the URL of the image it just shows the image in my browser and on my application, and I can't use views for this cause it needs to show on the iOS application.
Any help would be greatly appreciated.
Thanks in advance,
Sokoo
I'm new in CakePHP and trying to learn but I don't understand this part very well..
I'm using this CakePHP Upload plugin to upload images for users(avatars) and using imagick it resize image to certain sizes(thumbs)...
I follow Upload plugin instructions for uploading image. I manage to store image file and image directory in database. So column photo in database would be (imagename.jpg) and photo directory would be userid,
for example (35). Image also appear in files/user/userid/imagename.jpg
Now may be it's funny but how I output this image and display in view file ? Also is there possibility to randomize file name ? (so the file name is not same as uploaded)
to view your upload in view files of CakePHP
you write in ctp files like
$html->link($html->image('files/user/".$userId."/".$ImageName."', array('alt'=>"User Image", 'border'=>"0"))
,'#',array('id'=>$userId, 'escape'=>false));
let me know if i can help you further,
I am working on the admin section of a website in codeigniter. I am using Grocery CRUD for the
add edit delete operations. I've used 'set_field_upload' function to provide a video upload field inside the form. I need to add a thumbnail for the video, so require another upload field.
Is it possible to implement multiple upload field inside the form using grocery crud? Are there any other methods to create thumbnail other than ffmpeg ?
I recommend invoking ffmpeg on the server once the upload is complete using PHP's exec(). Have a look at these SE answers for some ideas:
FFMPEG Generate N Evenly Spaced PNG Screenshots
Video Thumbnails using ffmpeg
Temporarily store the images generated by ffmpeg, echo their paths back to the client using AJAX and have them select the one they wish.
Hi I want to put an image into the PDF file I'm making using TCPDF. It is an image generated by an online API so I cannot store it on my webhost. But when I put the image URL for creating I'm getting error while generating the PDF file.
TCPDF can only use images saved on your webhost - local files, as it needs a physical path to the image in order to include it in the document. The only way you could grab an image from HTTP to be used for TCPDF would be to use cURL, which is something I have only used for text and html, but have no experience grabbing images with, but I'm sure there's a way it can be done.