lmartins Posted March 19, 2013 Posted March 19, 2013 Hi, There was a Alfred v1 plugin which allowed to pick an image from finder, and convert it's format. I used it quite frequently to convert from png to jpg Another small feature that I would love to be able: 1) pick a bunch of images on finder 2) activate a trigger 3) convert all those images to a unique pdf With so many awesome workflows popping up i know it's just a matter of time. If anyone knows solutions for this please share. Cheers
vitor Posted March 19, 2013 Posted March 19, 2013 A link to the original extension would be helpful, to get a sense of how it worked. I mention this because this would be fairly trivial using imagemagick, but that would entail having it installed. Having a look at the extension you mention, though, it might be easy to convert to a workflow. Maybe the original creator is already doing it, even.
greghoch Posted March 19, 2013 Posted March 19, 2013 I was looking for that as well (mainly for pdf->png) + something that allows me to convert doc and docx files to pdf...
R4z3r Posted March 19, 2013 Posted March 19, 2013 Beginnings of PHP solutions: Doc / DocX to PDF: If anyone wanted to use PHP, could probably be done pretty easily with a script filter and http://www.phpdocx.com/ Image Types: http://stackoverflow.com/questions/755781/convert-jpg-image-to-gif-png-bmp-format-using-php
lmartins Posted March 20, 2013 Author Posted March 20, 2013 Sorry for not replying earlier, was expecting to be notified of replies here. The previous plugin for converting image formats was named "Convert Image Formats" at http://www.dirtdon.com/?p=886 It required to convert images one at a time, which now with workflows i imagine can be a bulk operation. For converting a set of images to pdf, wasn't possible for the same reason, could only pick one image to acted upon.
vitor Posted March 20, 2013 Posted March 20, 2013 (edited) Like I said, many of those operations could be achieved with ImageMagick. Were I to do a workflow for this, I’d probably rely on it, but I’d still have to think on what exactly to do in case the user does not have it installed, and how to interpret the multitude of options it provides. I probably won’t tackle that particular problem, at least in the near future, since the fact that ImageMagick is so capable is actually why it’s likely not worth porting to a general use workflow. Alfred’s workflows (and extensions, previously) are great for a lot of command‐line tasks for which it’s cumbersome to open a terminal just to execute, but they’re not ideal for everything, and this, I think, is one of those cases, as the commands would need to grow so complex that you’d essentially just be running the cli command in Alfred (which is something you can already do). That said, that script that simply converts an image between a .jpg and a .png is a good candidate for a workflow, and it is fairly simple. I did not port it, but I can quickly walk you through the process of doing it, so you’ll be able to do it for any other workflows you need to. 1. Download the extension2. Extract the files from within it (a .alfredextension file is simply a .zip file renamed)3. Locate the “info.plist” file inside, and open it4. Find the bash executable code (it’s the multiline code enclosed by <script> and </script> tags), and copy it (minus the tags)5. Create a new blank workflow and call it whatever you want.6. Press the “+” and do Triggers → File Action, followed by the command you want to use to execute it7. Again “+”, but this time do Actions → Run Script, and inside the box, paste the code you copied earlier9. Connect the two, and you should be done If you need some help/clarification with any of the steps, feel free to ask.Also, regarding the other conversion something that allows me to convert doc and docx files to pdf... For that particular problem, a quick google search revealed this http://onabai.wordpress.com/2012/07/10/convert-word-files-docdocx-to-pdf-in-osx/, which should cover your needs. Edited March 20, 2013 by Vítor
lmartins Posted March 20, 2013 Author Posted March 20, 2013 Going to try as you've describe here, thanks :-) I've already have an automator script that i use to convert to pdf, guess i'll have to explore how to reuse that as an Alfred workflow.
R4z3r Posted March 20, 2013 Posted March 20, 2013 I'll see if I can put together one with the link I put above for you. Right now I've been focused on the TV one I just released. If there interest I can try to put that together for you.
lmartins Posted March 20, 2013 Author Posted March 20, 2013 That's really nice from you, i don't want to take your time. If it's not useful to you don't worry, im sure someone will make it eventually.
phallstrom Posted March 21, 2013 Posted March 21, 2013 Regarding #3 (multiple images into a single PDF). Do you mean something like this? Granted it's V1 only and results in a PNG, but that idea? I haven't decided if I want to update it yet or not. http://pjkh.com/projects/alfred-image-montage/
FiXER Posted March 29, 2013 Posted March 29, 2013 I had a script to convert psds to png, when I was using LaunchBar. But I need help implementing it as a workflow. Here's the topic. Then you can use it also to convert images from png to jpg
hebe_210 Posted April 7, 2013 Posted April 7, 2013 (edited) I was looking for that as well (mainly for pdf->png) + something that allows me to convert doc and docx files to pdf... hi ,LeChuck I guess you need a pdf converter ,you just need to google it and many free PDF conerter will be provided like this .it is easy to get pdf-png conversion done ,of course doc(x) to pdf Edited April 7, 2013 by hebe_210
mindylynn0 Posted October 20, 2014 Posted October 20, 2014 I was looking for that as well (mainly for pdf->png) + something that allows me to convert doc and docx files to pdf... Converting pdf document to raster png image is not a new tech. Commonly, Google Docs, ImageMagick, Adobe Reader, GIMP, PDF Converter, etc are often used for pdf conversion to raster images.
aliaanderson Posted September 1, 2016 Posted September 1, 2016 Yes you may be try at website: http://pdf-to-jpg-convert.en.softonic.com
rvnikita Posted June 21, 2022 Posted June 21, 2022 I have created bash script by using "magick convert" command to do that from Finder. You can find project here https://github.com/rvnikita/alfred_webp_to_jpeg Let me know if you need help with it.
cage.chung Posted October 5, 2022 Posted October 5, 2022 I crated a workflow that could convert pdf to jpg by page range. You could have try by https://github.com/cage1016/alfred-pdf2image FYI
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now