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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:04:24+00:00 2026-05-13T12:04:24+00:00

im using a image preview that allows me to add css styles to the

  • 0

im using a image preview that allows me to add css styles to the previews that pops up.

now, some images are larger than the screen so you will just see a portion of them, while other images are very small so you don’t have to resize them.

is there a way to only resize the larger images and not touching the smaller ones, eg. only resize images with width or height larger than 400 px?

any other approaches to make the larger ones fit into the screen without affecting the smaller ones would be appreciated cause if i just use width=400px and height=400px all images will be at that size and the proportion will be wrong. and for smaller images you will se very large pixels.

thanks in advance

  • 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-13T12:04:24+00:00Added an answer on May 13, 2026 at 12:04 pm

    Seam carving javascript implementation is what I call smart resizing of images 🙂

    Anyway, in Javascript, you can implement your logic depending on the width and height properties of the Image object.

    Also have a look at this page, the author uses jQuery to resize images larger than specified dimensions.

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

Sidebar

Ask A Question

Stats

  • Questions 524k
  • Answers 524k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Easy - you instantiate ("new up") a new ViewModel and… May 16, 2026 at 10:00 pm
  • Editorial Team
    Editorial Team added an answer Firstly, display:none is not universally considered to be a SEO… May 16, 2026 at 10:00 pm
  • Editorial Team
    Editorial Team added an answer The way you'd want to do this is to make… May 16, 2026 at 10:00 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

im using a jquery image preview plugin for showing preview of my link images
I'm currently building a site that allows previewing photos and videos using Shadowbox. I'm
I'm building an app that allows users to snap pictures using the iPhone camera,
possible to use css to have zebra stripe as background without using image?
I have a simple image gallery that I've paginated, and I want to to
there are various good jquery image preview plugins out there. however, all of the
I am trying to generate a html page with css that works as an
Background I am writing and using a very simple CGI-based (Perl) content management tool
Using Javascript to change an 's src... First time the width and height properties
I have a php add classified page where users may fill in details in

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.