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 8684939
In Process

The Archive Base Latest Questions

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

I am creating a image editing tool using HTML 5 Canvas & Java script.

  • 0

I am creating a image editing tool using HTML 5 Canvas & Java script. I am loading large image to canvas by scaling an image to fit the canvas, apply some filters, and save back image to disk.

The problem is when I save a canvas to image it will store image with canvas size. What I want is image will be stored to its actual dimensions with applied filters. The Same approach used by Flickr.

For Example

if the image is 1000px X 1000px and displayed in a 300px X 300px canvas, I am loading image to canvas as 300px X 300px. while saving I still want to save the image with 1000px X 1000px dimesnion. How to do that?

I am developing using php, HTML5 & Javascript.

I want to do everything on client side, before sending an image to server

Any Help?

looking for a proper solution

  • 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-12T22:26:01+00:00Added an answer on June 12, 2026 at 10:26 pm

    Found it.

    Just need to change canvas size by using css & tag attribute

    CSS width & height adjust display area of canvas
    Tag width & height are actual image width & height

    For example:

    #canvas { width:500px; height:350px}
    <canvas id="canvas" width="1024" height="760"></canvas>
    

    Above will display canvas with block of 500px x 350px.
    However when canvas saved to image it will saved with image size 1024×760

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on creating an online image editing tool.Looking for some refernce how
I have recently begin creating an image editing tool which will cater to a
I am creating an image (some sort of copy of another gallery image) using
I am creating an image dynamically using php. The image is being created if
When creating a new Image element in javascript, Google Chrome's memory tool (Developer tools
I am creating a transparent image on iOS using Quartz. However, this image shows
I am creating a jquery image gallery and I am using fancy box to
I'm creating an dynamic image, which creates headers on my page using PHPs GD-library.
I'm creating an image editing application for iphone. i would like to enable the
I've created a new html helper method for creating image tags within the razor

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.