Page 1 of 2

Multipage Tiffs or Acrobat File

Posted: Thu Jun 22, 2006 1:10 pm
by jhonken
I need to write a new application in Rev. It needs to read in either a Multipage Tiff or a multipage Acrobat file. I need the ability to move between the pages in the program while viewing them. What format would be easiest in Rev and is there an example programs out there doing this? Any input would be greatly appreciated. Jeff

Re: Multipage Tiffs or Acrobat File

Posted: Tue Oct 02, 2018 12:17 pm
by bogs
Hmm, one post above looks bot-like, but I think the Op is an real life person, so I hope this will help a bit.
Nabble post "LiveCode - Import Tiff", Terry Judd's post [4th down] looks promising.

*Edit - BYU's reference on the subject was less heartening.
LiveCode cannot directly import or display TIFF files, so before you import them you must convert them to one of the formats LiveCode supports, primarily PNG, GIF or JPEG.
I wonder if -hh has tackled this topic yet. Hmmmm :|

Re: Multipage Tiffs or Acrobat File

Posted: Tue Oct 02, 2018 6:55 pm
by richmond62
One can convert tiff images very easily into png images on all major platforms, so wonder why this is necessary.

Re: Multipage Tiffs or Acrobat File

Posted: Tue Oct 02, 2018 8:25 pm
by bogs
Well, one reason might be that jhonken is pulling directly from a scanner, much like that nabble topic I linked to. Although many scanners *are* able to output other formats, many older ones are not able to. Mind you, this is only one example, I am sure there may be others, such as having folders full of .tiff / .acrobat files that you want to process without having to do a bulk conversion first (although I believe image magick can do exactly that).

However, perhaps the Op may be able to do that as a workaround, hopefully they will chime back in and say so :D

Re: Multipage Tiffs or Acrobat File

Posted: Tue Oct 02, 2018 8:32 pm
by SparkOut
I hope the OP has moved on with a solution since 2006 :D

Re: Multipage Tiffs or Acrobat File

Posted: Tue Oct 02, 2018 10:31 pm
by bogs
:oops: I'm going to blame the bot :P

Re: Multipage Tiffs or Acrobat File

Posted: Wed Oct 03, 2018 10:03 am
by richmond62
Having, as I do, several 2006 Intel iMacs running Mac OS 10.7.x, I do get cheesed off that the GRAB app for screenshots dumps the results in TIFF format; meaning that I, subsequently, have to convert them into PNG or JPG format to do anything vaguely useful with them.

I don't know if Apple have "pulled themselves together" re the GRAB app in their "latest and greatest"
offering: but suspect not as a lot of people seem to like apples with cheese. 8)

Re: Multipage Tiffs or Acrobat File

Posted: Wed Oct 03, 2018 10:46 am
by Klaus
Hi Richmond,

this should do the job for your 10.7.x machine, enter this in the terminal:
defaults write com.apple.ScreenCapture type "jpg"; killAll SystemUIServer

Will change the screenshot format to JPEG.


Best

Klaus

Re: Multipage Tiffs or Acrobat File

Posted: Wed Oct 03, 2018 12:05 pm
by bogs
That is pretty cool to know, thanks Klaus! Can '.png' be substituted as well?

Re: Multipage Tiffs or Acrobat File

Posted: Wed Oct 03, 2018 12:12 pm
by Klaus
bogs wrote:
Wed Oct 03, 2018 12:05 pm
That is pretty cool to know, thanks Klaus! Can '.png' be substituted as well?
I think so.

Re: Multipage Tiffs or Acrobat File

Posted: Wed Oct 03, 2018 9:54 pm
by capellan
Effectively, there is a Javascript library that converts TIFF in PNG:
https://github.com/seikichi/tiff.js

Here you could find demos for this library:
http://seikichi.github.io/tiff.js/

and here are more libraries for TIFF conversion:
https://libraries.io/search?keywords=ti ... JavaScript

Al

Re: Multipage Tiffs or Acrobat File

Posted: Wed Oct 03, 2018 10:43 pm
by Klaus
Hola Al,

the initial posting is 12 (TWELVE) years old, so I don't think all these hints are neccessary anymore! 8)


Best

Klaus

Re: Multipage Tiffs or Acrobat File

Posted: Thu Oct 04, 2018 12:05 pm
by bogs
Why not Klaus?

I still wouldn't have known how to resolve this dilemma, the bot that is a journalist didn't know, and anyone else looking for a resolution may find this (now) very active thread and be grateful that 12 years later, someone had an answer :P

Re: Multipage Tiffs or Acrobat File

Posted: Fri Oct 05, 2018 9:17 am
by richmond62
Yes, you can change the screen shot format on Macintosh computers; what you cannot do
is change the format that the GRAB app saves to: TIFF.

Re: Multipage Tiffs or Acrobat File

Posted: Fri Oct 05, 2018 3:43 pm
by FourthWorld
LiveCode has a built-in command for printing to PDF.