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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:17:14+00:00 2026-06-07T16:17:14+00:00

While processing an image I’m trying to reduce the size of the current thumb

  • 0

While processing an image I’m trying to reduce the size of the current thumb using animate and apply an overlay. The overlay is working but I can’t seem to get animate working and I think it has something to do with the way I’m finding the image.

Here is the HTML:

<img id='loading' />
....

<tr>
    <td>
        <img id="5" src="<?php echo($url['url'])?>" style="height:120px;"/>
    </td>
    <td>
        <a href="#" id="img_5" class="test">Test Overlay</a></li>
    </td>
</tr>

CSS:

#loading { 
position: absolute; 
display: none;
background:transparent url(../../images/overlay.png) repeat top left;
}

My current click event looks like this:

    $('.test').click(function(e) {
        e.preventDefault();

        var loading_img = $('#loading');

        var id = $(this).attr('id').substr(4);

        var img = $('#' + id);        
        var pos = img.offset();

        var $image  = $('#' + id).find('img:first');

        $image.stop(true)
          .animate({
            'width' :img.width() - 10 + 'px',
            'height':img.height() - 10 + 'px',
          },250);

        loading_img.show().css({
            width: img.width(),
            height: img.height(),
            left:pos.left, 
            top:pos.top
        });
    });      

Any idea what I’m missing with my animate call?

  • 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-07T16:17:16+00:00Added an answer on June 7, 2026 at 4:17 pm

    Prior to HTML5 id’s could not start with a numeric character. Without the HTML5 doctype, using such id’s may not work in all browsers.

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

Sidebar

Related Questions

I am working on a web script that handles image processing using ImageMagick. It
I'm working on a piece of code in MATLAB using the Image Processing Toolbox,
I've been working for a while on image processing and I've noticed weird things.
The Seaside book says: saving [an image] while processing http requests is a risk
How can I animate the tray icon while the main application is processing? I
I am trying update text views while this loop is processing. Here is my
I am trying to increase a variable's value while uibutton is kept pressing. But
My application is using an image processing library to handle a long running task.
image/png [paperclip] An error was received while processing: #<Paperclip::NotIdentifiedByImageMagickError: /var/folders/0f/hgplttnd7dg6q9m62qtbnpn00000gn/T/stream20120120-99159-ji1e70.png is not recognized by
I am working on image processing project,In my application i am processing one by

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.