Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.

View Poll Results: can an image size be adjusted programmatically

Voters
1. You may not vote on this poll
  • I need precise answer

    1 100.00%
  • I need helpful answer

    0 0%
Multiple Choice Poll.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Mar 2003
    Location
    London
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question image adjustment

    My job is to design websites.i need to display an image in larger and smaller size.is there any possibility to increase or decrease the size of the image programmatically without effecting the image clarity.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, if it's a vector image or graphic; rasterised images will show loss of quality when you resize.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Location
    Spain
    Posts
    420
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can have two versions of each image (small & large) or also, you can have a high res image in the server and a program to resize and send it to the client if requested
    Don't resist to assimilation. Billions of Borgs can't be wrong!

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It sounds to me like you need someting like ImageMagick
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #5
    Regular Coder
    Join Date
    Jul 2002
    Location
    Raleigh, NC
    Posts
    484
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what is the purpose of this poll?
    -WebMark Art
    Programming is 80% thinking and 20% spelling

  • #6
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That is what I never understood...



    http://www.mudsplat.com - Web design, print, and marketing solutions.

  • #7
    Regular Coder Feyd's Avatar
    Join Date
    May 2002
    Location
    Los Angeles, CA Maxim: Subvert Society
    Posts
    403
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ImageMagick and other such libraries will alter an image dynamically on the server so as to present. However, it is woefully innefficient and spuriously drains server resources when used on a significant level or in multiple simultaneous iterations.

    As far as resizing, vector always works best, as raster has hard-definition limitations. Though you can always resize down quite easily, without much loss of clarity, considering the size. Resizing a rasterized image up usually only lets you get one clear shot of the resized image, otherwise you would need to go in with an unsharp mask and (in worst-case scenarios) an adjustment layer with a blurured/soft-light overlay of the original to even out the artifacts/jaggies.

    Of course, the higher resolution your original master has, the more flexibility you have in resizing...
    Moderator, Perl/CGI Forum
    shadowstorm.net - subvert society


  •  

    Posting Permissions

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