Jump to content
lmartins

Request: Image Convert

Recommended Posts

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

Share this post


Link to post

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.

Share this post


Link to post

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.

Share this post


Link to post

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 extension
2. Extract the files from within it (a .alfredextension file is simply a .zip file renamed)
3. Locate the “info.plist” file inside, and open it
4. 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 it
7. Again “+”, but this time do Actions → Run Script, and inside the box, paste the code you copied earlier
9. 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 by Vítor

Share this post


Link to post

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.

Share this post


Link to post

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.

Share this post


Link to post

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 :)

Share this post


Link to post

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 by hebe_210

Share this post


Link to post

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.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...