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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:38:16+00:00 2026-05-29T03:38:16+00:00

I have gallery manager and drop area( for gallery image). When files dropped. I

  • 0

I have gallery manager and drop area( for gallery image).
When files dropped. I use FileReader for read and get base64 data of image.
My goal is resize all images (make thumb/normal image) on client.
Question: May i put base64 in to canvas then resize canvas and get new base64 of resized image?

  • 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-29T03:38:16+00:00Added an answer on May 29, 2026 at 3:38 am
    $.getImageData({
      url: "http://farm4.static.flickr.com/3002/2758349058_ab6dc9cfdc_z.jpg?zz=1",
      success: function(image){
    
        // Set up the canvas
        var can = document.getElementsByTagName('canvas')[0];
        var ctx = can.getContext('2d');
    
        // Set the canvas width and heigh to the same as the image
        $(can).attr('width', image.width);
        $(can).attr('height', image.height);
    
        // Draw the image on to the canvas
        ctx.drawImage(image, 0, 0, image.width, image.height);
    
        // Get the image data
        var image_data = ctx.getImageData(0, 0,  image.width, image.height);
        var image_data_array = image_data.data;
    
    
        // Write the image data to the canvas
        ctx.putImageData(image_data, 0, 0);
    
      },
      error: function(xhr, text_status){
        // Handle your error here
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have photo gallery code that does image re-sizing and thumbnail creation. I use
I my working on the site that will have image gallery. Designer idea was
Jquery, AJAX and URL changes... I have a gallery, and when the image change
I have an image gallery that I created by reading the contents inside a
I have gallery widget, when you scroll it, currently selected image has border -
I’m trying to get an image using the built in gallery. It works fine
I have managed to get a carousel so that when the image is changed
I am using Flex 4. I have created an image gallery with TileList When
I have an image gallery within a Drupal site that uses the 'Image Gallery'
I have been using UIPickerController to get the pics from my Built-in-Gallery into my

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.