Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8644673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:21:26+00:00 2026-06-12T12:21:26+00:00

I currently am using a script I have found online to generate barcodes for

  • 0

I currently am using a script I have found online to generate barcodes for my company. I have modified it a bit to allow the barcode to expand horizontally. The only thing I am lacking is the text the barcode is generating.

I would like the text centered underneath the barcode in a justifiable font size to the barcode.

Here is my barcode script http://pastebin.com/wvTyxQrW

To generate you just go to barcode.php?text=1o2020p1 for example. I just wanted to have that text in the image below the barcode centered. I am just not proefficient enough with image manipulation to do this, it would take me hours.

Thank you for your suggestions / help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:21:27+00:00Added an answer on June 12, 2026 at 12:21 pm

    Replace

      $image = imagecreate($img_width, $img_height);
    

    with

      $image = imagecreate($img_width, $img_height + 20);
    

    And add the following code above // Draw barcode to the screen

    if (!empty($_GET['text'])) {
      imagestring($image, 5, 4, $img_height, $_GET['text'], $black);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a Perl CGI script that parses incoming XML requests using XML::Simple
I found a nice script to import xml using powershell http://slash4.de/tutorials/Automatic_mediawiki_page_import_powershell_script Currently I don't
I have a PHP script that will generate a report using PHPExcel from data
I have an IronPython script that looks for current running processes using WMI. The
I'm using emacs and I have written a script which uses current-buffer. However the
I am currently using the following script to set this value as a String:
I'm currently using the toprettyxml() function of the xml.dom module in a Python script
I'm currently trying to write a script that will connect to a site using
I am currently developing a very simple script in AutoHotKey, but it involves using
I tried using a free script that I found on the Internet but it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.