SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    May 2005
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    convert tif to png or others

    hello,

    I was trying to convert tif file to png, jpg or other types, however, it requires me to use system command and imagemagick for that. I understsand that it is not safe to allow system command. GD does not support tif, so how do we do this? Anyone has expriences on converting tif to other types?

    Thanks alot

  2. #2
    SitePoint Evangelist Tecknowjnkie's Avatar
    Join Date
    Nov 2004
    Location
    Mission Viejo
    Posts
    403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try This <

    May not be exactly what you need but will get you there.

  3. #3
    SitePoint Member
    Join Date
    May 2005
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks Technowjnkie,
    but this does not help as I had mentioned in the post. ImageMagick requires you to have shell command or system command function enabled - and this can be dangerous to your host.

    I am looking for any other alternative.

  4. #4
    SitePoint Evangelist Tecknowjnkie's Avatar
    Join Date
    Nov 2004
    Location
    Mission Viejo
    Posts
    403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this with this

  5. #5
    SitePoint Member
    Join Date
    May 2005
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks again I am really appreciated your help. Unfortunately, it also requires exec() function - which is a system command.

    I am thinking of a way to read the tiff into something which allow GD to handle it and change to png... GD won't need system commands but so far ...i have no luck.

  6. #6
    SitePoint Evangelist Tecknowjnkie's Avatar
    Join Date
    Nov 2004
    Location
    Mission Viejo
    Posts
    403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When I looked I could not find a tifftopng in the netpbm-toolkit.

    There is an app that converts tiff to png but it is a desktop solution.
    http://www.convertzone.com/net/cz-re...o-tiff-png.htm

    Here is another thread on the matter: http://forums.whirlpool.net.au/forum...s.cfm?t=337570

  7. #7
    SitePoint Member
    Join Date
    May 2005
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for putting up with me.

    All the links you have found pointed to the thing that I didn't want to all of them requires to use shell command. - my main goal is to get something work dynamically with php and never have to use shell command I guess there's no solution to converting tif to others without using shell/system commands.

    Thanks anyway!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •