Moving from ASP to PHP: Image questions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Giggle Girl

    Moving from ASP to PHP: Image questions

    Overall Background:
    I am in charge of migrating an already-made Content Mangement System
    from ASP to PHP. I do not know PHP -- yet! I am trying to foresee
    potential issues, and here is one.

    Image Specific Background:
    The ASP version of the CMS uses a 3rd party component to accept the
    uploading of images, and then to resize them so that thumbnails are
    made (as well as the original image) for photo albums.
    [color=blue]
    >From what I have researched, new releases of PHP have image[/color]
    manipulating abilities built-in to the language. But most of what I
    have seen is "real-time" conversion where the PHP spits out a stream of
    manipulated images. I want to be able to make a thumbnail for each
    image, which will be saved to the server, and then reference this
    thumbnail in a database.

    Can someone point me to code that relates to this?

    Or offer their thoughts on this? Any forseeable problems, especially
    related to File Writing (making a new image) or shortcomings of
    built-in image manipulation capabilities? (In the 3rd party ASP version
    we had to get a really old version of a component that allowed GIF
    manipulation, due to licensing issues, for instance.)

    Any thoughts from PHP developers are appreciated!

    Thanks,
    Ann

  • R. Rajesh Jeba Anbiah

    #2
    Re: Moving from ASP to PHP: Image questions

    Giggle Girl wrote:
    <snip>[color=blue]
    >From what I have researched, new releases of PHP have image
    > manipulating abilities built-in to the language. But most of what I
    > have seen is "real-time" conversion where the PHP spits out a stream of
    > manipulated images. I want to be able to make a thumbnail for each
    > image, which will be saved to the server, and then reference this
    > thumbnail in a database.
    >
    > Can someone point me to code that relates to this?[/color]

    1. http://www.google.com/search?q=php+thumbnail
    2. http://www.sum-it.nl/en200319.php3

    --
    <?php echo 'Just another PHP saint'; ?>
    Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

    Comment

    • JDS

      #3
      Re: Moving from ASP to PHP: Image questions

      On Mon, 07 Nov 2005 10:30:48 -0800, Giggle Girl wrote:
      [color=blue]
      > In the 3rd party ASP version
      > we had to get a really old version of a component that allowed GIF
      > manipulation, due to licensing issues, for instance.[/color]

      GIF Licensing issues are moot anymore:

      Unisys is a global technology solutions company for cloud, data and AI, digital workplace, logistics and enterprise computing solutions.


      --
      JDS | jeffrey@example .invalid
      | http://www.newtnotes.com
      DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

      Comment

      • Colin McKinnon

        #4
        Re: Moving from ASP to PHP: Image questions

        Giggle Girl wrote:
        [color=blue]
        > Overall Background:
        > I am in charge of migrating an already-made Content Mangement System
        > from ASP to PHP.[/color]

        You might find asp2php helpful (http://asp2php.naken.cc/)
        [color=blue]
        >[color=green]
        >>From what I have researched, new releases of PHP have image[/color]
        > manipulating abilities built-in to the language. But most of what I
        > have seen is "real-time" conversion where the PHP spits out a stream of
        > manipulated images. I want to be able to make a thumbnail for each
        > image, which will be saved to the server, and then reference this
        > thumbnail in a database.
        >[/color]

        There's lots - try searching for PHP & thumbnails at freshmeat.net.

        If you're running on Linux, there are lots of CLI based tools which will do
        the job a lot better than I could using the GD library. Invoking shell
        based programs (and their availabilty) is not so good on a MS platform
        though. Last time I checked, the GD lib still doesn't do GIF saving - but
        PNG gives better compression and supports larger pallettes anyway.

        HTH

        C.

        Comment

        • Webmontreal.com

          #5
          Re: Moving from ASP to PHP: Image questions

          I use gd lib

          Make sure your host installs it.

          Comment

          • Raqueeb Hassan

            #6
            Re: Moving from ASP to PHP: Image questions

            > I use gd lib

            Well, same here ... and I guess, png is doing lot better than what gif
            does!
            [color=blue]
            > I want to be able to make a thumbnail for each
            > image, which will be saved to the server, and then reference this
            > thumbnail in a database.[/color]

            gd will help you in that regard.

            --
            Raqueeb Hassan
            Bangladesh

            Comment

            • Raqueeb Hassan

              #7
              Re: Moving from ASP to PHP: Image questions

              > I use gd lib

              Well, same here ... and I guess, png is doing lot better than what gif
              does!
              [color=blue]
              > I want to be able to make a thumbnail for each
              > image, which will be saved to the server, and then reference this
              > thumbnail in a database.[/color]

              gd will help you in that regard.

              --
              Raqueeb Hassan
              Bangladesh

              Comment

              Working...