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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:18:05+00:00 2026-05-30T20:18:05+00:00

I recently made and hosted Catifier.com. It’s working pretty good, except I have a

  • 0

I recently made and hosted Catifier.com.

It’s working pretty good, except I have a bug with saving I have to work out, and it stretches images when you set them as the background.

Portrait images look horrible.

Would it be possible to detect the width and height of the image a user pastes in the box, then resize the canvas accordingly?

  • 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-30T20:18:06+00:00Added an answer on May 30, 2026 at 8:18 pm

    You have to load your picture in a DOM element to know its size.

    So basicly when you want to do it, here are the steps :

    • Add your picture in an invisible DOM element.
    • You will be able to get picture width and heignt when onload event is lauched.
    • Then create your canvas depending those two variables.

    All can be done in very few javascript lines.

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

Sidebar

Related Questions

I recently made my first custom shape and it turned out really good accept
Hi I have recently made this script to rename files I scan for work
I'm working on a site that is using Facebook Connect and recently made some
Recently I have discovered that my release executable (made with msvc++ express 2008) becomes
So I have a website that I recently made changes to, and one of
I have recently made use of the SrcSrv feature in the Debugging Tools For
I have recently made the shift to a framework called the Yii Framework. Really
Alright so I have recently made the decision to put every string in my
I have recently made a cp clone (for University) and I happened to discover
I have recently made the transition from a Java web developer to a C#

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.