Does anyone know of a way to convert an uploaded tiff image into a jpg or png? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Mike Chai wrote:> Does anyone know of a way to convert an uploaded tiff image into a jpg > or png?http://github.com/thoughtbot/paperclip http://www.imagemagick.org/script/index.php -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks. How can I use paperclip to convert? I tried looking it up in google but got no results. On Feb 23, 1:59 pm, Robert Walker <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Mike Chai wrote: > > Does anyone know of a way to convert an uploaded tiff image into a jpg > > or png? > > http://github.com/thoughtbot/papercliphttp://www.imagemagick.org/script/index.php > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 23 Feb 2010, at 23:19, Mike C wrote:> Thanks. How can I use paperclip to convert? I tried looking it up in > google but got no results. > > On Feb 23, 1:59 pm, Robert Walker <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> Mike Chai wrote: >>> Does anyone know of a way to convert an uploaded tiff image into a >>> jpg >>> or png? >> >> http://github.com/thoughtbot/papercliphttp://www.imagemagick.org/script/index.php >Use :convert_options as shown here: http://www.taknado.com/en/2009/10/01/paperclip-tweaks/ (found using "paperclip rails convert file" on google). Someone else will be able to give you the imagemagick command parameter to convert to jpg I hope, don''t know it by heart. Best regards Peter De Berdt -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
This is actually used with AttachmentFu, but has some example code for Rmagick resizing: http://github.com/kete/kete/blob/master/lib/resize_as_jpeg_when_necessary.rb#59 Cheers, Walter On Wed, Feb 24, 2010 at 12:24 PM, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> > On 23 Feb 2010, at 23:19, Mike C wrote: > > Thanks. How can I use paperclip to convert? I tried looking it up in > google but got no results. > > On Feb 23, 1:59 pm, Robert Walker <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > Mike Chai wrote: > > Does anyone know of a way to convert an uploaded tiff image into a jpg > > or png? > > http://github.com/thoughtbot/papercliphttp://www.imagemagick.org/script/index.php > > > Use :convert_options as shown > here: http://www.taknado.com/en/2009/10/01/paperclip-tweaks/ (found using > "paperclip rails convert file" on google). Someone else will be able to give > you the imagemagick command parameter to convert to jpg I hope, don''t know > it by heart. > > Best regards > > Peter De Berdt > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
The #59 meaning the relevant line is mainly the setting of format in line 59. There is other stuff in their you may find useful, too. Cheers, Walter On Wed, Feb 24, 2010 at 12:31 PM, Walter McGinnis <walter.mcginnis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> This is actually used with AttachmentFu, but has some example code for > Rmagick resizing: > > http://github.com/kete/kete/blob/master/lib/resize_as_jpeg_when_necessary.rb#59 > > Cheers, > Walter > > On Wed, Feb 24, 2010 at 12:24 PM, Peter De Berdt > <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote: >> >> On 23 Feb 2010, at 23:19, Mike C wrote: >> >> Thanks. How can I use paperclip to convert? I tried looking it up in >> google but got no results. >> >> On Feb 23, 1:59 pm, Robert Walker <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> >> Mike Chai wrote: >> >> Does anyone know of a way to convert an uploaded tiff image into a jpg >> >> or png? >> >> http://github.com/thoughtbot/papercliphttp://www.imagemagick.org/script/index.php >> >> >> Use :convert_options as shown >> here: http://www.taknado.com/en/2009/10/01/paperclip-tweaks/ (found using >> "paperclip rails convert file" on google). Someone else will be able to give >> you the imagemagick command parameter to convert to jpg I hope, don''t know >> it by heart. >> >> Best regards >> >> Peter De Berdt >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks for the replies. I''m using paperclip, but while search I still can''t find out how to do this. I want to convert the image to jpg/png ONLY if it''s a tiff image. I saw processors/callbacks in paperclip but I haven''t found any way to make a Processor that can do this for me since I don''t know how to call Imagemagick from ruby code. Would I need Rmagick for this and how would it play in with paperclip? On Feb 23, 3:32 pm, Walter McGinnis <walter.mcgin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The #59 meaning the relevant line is mainly the setting of format in > line 59. There is other stuff in their you may find useful, too. > > Cheers, > Walter > > On Wed, Feb 24, 2010 at 12:31 PM, Walter McGinnis > > > > <walter.mcgin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > This is actually used with AttachmentFu, but has some example code for > > Rmagick resizing: > > >http://github.com/kete/kete/blob/master/lib/resize_as_jpeg_when_neces... > > > Cheers, > > Walter > > > On Wed, Feb 24, 2010 at 12:24 PM, Peter De Berdt > > <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote: > > >> On 23 Feb 2010, at 23:19, Mike C wrote: > > >> Thanks. How can I use paperclip to convert? I tried looking it up in > >> google but got no results. > > >> On Feb 23, 1:59 pm, Robert Walker <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > >> Mike Chai wrote: > > >> Does anyone know of a way to convert an uploadedtiffimage into a jpg > > >> or png? > > >>http://github.com/thoughtbot/papercliphttp://www.imagemagick.org/scri... > > >> Use :convert_options as shown > >> here: http://www.taknado.com/en/2009/10/01/paperclip-tweaks/(found using > >> "paperclip rails convert file" on google). Someone else will be able to give > >> you the imagemagick command parameter to convert to jpg I hope, don''t know > >> it by heart. > > >> Best regards > > >> Peter De Berdt > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "Ruby on Rails: Talk" group. > >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org. > >> To unsubscribe from this group, send email to > >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> For more options, visit this group at > >>http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
you can try some third pdrty pdf converter dll to convert pdf to html ,i think can be much easier if a converter dll is employed. have a check! http://www.rasteredge.com/how-to/vb-net-imaging/tiff-converting/ -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e6fd0f91cb45481f02d0661697c2048c%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
I have only tried to convert Tiff files using the free trial package of another Tiff converter: http://www.yiigo.com/guides/csharp/how-to-tiff-convert.shtml I am considering to employ one to help me. Do you have any good suggestion? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e521e1d65be5b44fcf0e46fe2db0b1e1%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On Nov 6, 2013, at 3:36 AM, arron w. wrote:> I have only tried to convert Tiff files using the free trial package of > another Tiff converter: > http://www.yiigo.com/guides/csharp/how-to-tiff-convert.shtml > I am considering to employ one to help me. Do you have any good > suggestion? >Install imagemagick on your server. It''s free, and very powerful. Converting a TIFF to another image format is as simple as this: convert /path/to/image.tiff /path/to/output.jpg Naturally, you can do almost anything and tweak almost anything, given the right flags passed to the convert command. If imagemagick can''t open or understand the file, it''s highly unlikely that it is an image at all. Walter -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/45AB5123-C3FD-44ED-8761-A914A692AA23%40wdstudio.com. For more options, visit https://groups.google.com/groups/opt_out.