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.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    [QUESTION] How would I do this?

    Okay, so here is what I am trying to do. I want to have a dynamic image. In this image, I want there to be information retrieved from the website.

    For example, I would have an image that retrieves the post count on this forum. How would I do something like that?

    Where I have an image, and on it, there is an allocated section that displays information that will change. I want this change to be automatic, so I don't have to manually update the image every time something like my post count changes?

    Any ideas?

  • #2
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,215
    Thanks
    12
    Thanked 338 Times in 334 Posts
    you would need an image processing library (e.g. GD, imagick) to create the image on-the-fly.
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer

  • #3
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Dormilich View Post
    you would need an image processing library (e.g. GD, imagick) to create the image on-the-fly.
    And this would allow me to embed code in the image?

    Also, what language would I need to write this in?

  • #4
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,215
    Thanks
    12
    Thanked 338 Times in 334 Posts
    Quote Originally Posted by Hathor View Post
    And this would allow me to embed code in the image?
    I wouldn’t call it code, rather text.


    Quote Originally Posted by Hathor View Post
    Also, what language would I need to write this in?
    any language you know and which supports one of such image processing libraries.
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer

  • #5
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Dormilich View Post
    I wouldn’t call it code, rather text.



    any language you know and which supports one of such image processing libraries.
    Well, I mean how would I go through the whole process. As in, first, how would I take the code that I wrote to find that information, and then put it on the image in a specific region. This code would take that information automatically, even if it changes, and still include it on the image. So, for example, my post count just changed. Suppose I wanted an image that has my post count. It would automatically change the TEXT on the image to adjust to my new post count. THIS is what I'd like to know.

    This is like making a dynamic banner, which automatically adjusts to changed data. And how would I write such code that would find that data?

    I'd think PHP would be appropriate for this...

  • #6
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,459
    Thanks
    1
    Thanked 23 Times in 21 Posts
    You're probably right; I don't see any XML code involved here at all.

    Moving to the PHP forum, per your request.
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • #7
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Alex Vincent View Post
    You're probably right; I don't see any XML code involved here at all.

    Moving to the PHP forum, per your request.
    Thank you, I feel weird now that I posted that in the XML section. At the time, I wasn't sure what to code this in...

    I'm still not 100% positive yet, but I'll try... Now, about my questions above, do you have any idea?

  • #8
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,642
    Thanks
    2
    Thanked 405 Times in 397 Posts
    Quote Originally Posted by Hathor View Post
    I'm still not 100% positive yet, but I'll try... Now, about my questions above, do you have any idea?
    Yep:
    Quote Originally Posted by Dormilich View Post
    you would need an image processing library (e.g. GD, imagick) to create the image on-the-fly.
    Read up on GD; specifically the examples section.


  •  

    Posting Permissions

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