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

  • Home
  • SEARCH
  • 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 6597771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:15:04+00:00 2026-05-25T18:15:04+00:00

I am trying to write a document in postscript. Thus far I’ve been able

  • 0

I am trying to write a document in postscript.

Thus far I’ve been able to write simple text, and work with lines and shapes.

I’m now trying to add some images to the document. After searching on-line I can’t seem to find any clear way to do this.

the snip it below is a hello world:

%!PS
/Times               
20 selectfont         
20 800 moveto         
(Hello World!) show
showpage 

All I want to do is simply insert an image (eg PNG, JPG, GIF) by specifying the x and y, co-ordinates.

Any help would be much appreciated.

  • 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-05-25T18:15:05+00:00Added an answer on May 25, 2026 at 6:15 pm

    There is a simple method and Postscript does support the jpeg format. If you are using ghostscript you may have to use the -dNOSAFER option to open files. Here is an example:

    gsave
     360 72 translate     % set lower left of image at (360, 72)
      175 47 scale         % size of rendered image is 175 points by 47 points
      500                   % number of columns per row
      133                    % number of rows
      8                    % bits per color channel (1, 2, 4, or 8)
      [500 0 0 -133 0 133]       % transform array... maps unit square to pixel
      (myJPEG500x133.jpg) (r) file /DCTDecode filter % opens the file and filters the image data
      false                 % pull channels from separate sources
      3                    % 3 color channels (RGB)
      colorimage
    grestore
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to write a PHP script to parse an XML document using
I am trying to write a simple method to save my document to a
I'm trying to write a query for an advanced search page on my document
im trying to write an app that will display a list off lines from
I've been trying for a couple hours now to figure out why JavaScript wouldn't
I'm trying to write to an XML document, taking data from an ArrayList of
I am trying to use document.write(html); in my script but it looks illegal. I
I'm trying to write out a graphML document with XOM in java, but I
I am trying to write a method in Ruby that uses a here-document of
I am trying to write a simple if statement in javascript (jquery library) that

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.