Skip to main content
Share Your Experience: Take the 2024 Developer Survey
207 votes
Accepted

What is the purpose of storing multiple lower resolution versions of the same original image?

Image scaling isn't necessarily free Modern processors are fast, but they're not magic, and everything that needs calculating on the fly uses up resources that could be better spent elsewhere. ...
IMSoP's user avatar
  • 5,857
16 votes

What is the purpose of storing multiple lower resolution versions of the same original image?

It's often so that you can display differently sized versions of an icon without having to go through the process of scaling down to smaller sizes. The smaller versions may have been tweaked to make ...
Simon B's user avatar
  • 9,633
11 votes

How are dynamic images programmed?

I'm pretty sure they're generated on the fly based on a bunch of parameters. You'll note if you Inspect Element that the HTML for the tag includes some code : data-itemcode="BEH-PEN-01" Probably ...
Rachel's user avatar
  • 24k
11 votes

What is the purpose of storing multiple lower resolution versions of the same original image?

For images over many magnitudes of scale, programs will store multiple resolutions in an efficient format https://en.wikipedia.org/wiki/Pyramid_(image_processing) One use case: for high resolution ...
qwr's user avatar
  • 343
9 votes
Accepted

In a web application, should "private" user images be protected with authentication/authorization?

I've come back to this question a number of times. To be honest, my expectation as a user is if I mark it private, then I wouldn't expect a direct link to work. But I'm a technologist. I have a ...
Greg Burghardt's user avatar
6 votes
Accepted

Store and Tag Millions of Images

The question is one of scale, where it will be hosted, cost and management. If you know you are going to host in AWS, then you can take advantage of the distributed nature that makes the cloud more ...
Berin Loritsch's user avatar
5 votes
Accepted

What is a good approach to handle editing product images?

Keep it RESTy. Have the client indicate the desired state, and let the server figure out how to achieve that state. So I would suggest that you stick with approach #1, which would be the desired array ...
amon's user avatar
  • 134k
5 votes

Image resizing client side vs server side

If disc space is the only constraint then it doesn't matter which end resizes the image. The client might do it slightly slower than the server or the server may be overloaded with clients sending ...
gbjbaanb's user avatar
  • 48.6k
4 votes
Accepted

Image resizing client side vs server side

From a speed point of view, your Computer is most likely much faster than the server you have for your website/web-application, so it would make more sense to resize on the client, than on the server. ...
XaolingBao's user avatar
4 votes
Accepted

How are dynamic images programmed?

In the specific case in the example they seem to be combining images of the different parts on the server and then sending a complete image to the browser. As can be seen if we take a look at the URL ...
esrange's user avatar
  • 56
3 votes
Accepted

How should I treat image licenses in my program?

A pop-up is probably suitable for an image embedded in an application: CC licenses have a flexible attribution requirement, so there is not necessarily one correct way to provide attribution. The ...
david25272's user avatar
3 votes
Accepted

Optimal method of storing image thumbnails

Having multiple different resolution images is a very good idea. Perhaps 2, perhaps more, in your use case probably those 2. The problem with downscaling on the fly is that you have to: Wait for ...
juhist's user avatar
  • 2,579
3 votes

What is the purpose of storing multiple lower resolution versions of the same original image?

One big reason is even in the current version of Windows, program icons are bitmap files. Vector images - like SVG - aren't supported by the OS yet. The official design guide says: Because app icon ...
bta's user avatar
  • 1,123
3 votes
Accepted

How do I check programmatically if two photos show the same drawing?

This is commonly called image registration (https://en.wikipedia.org/wiki/Image_registration). You might also look through OpenCV (https://docs.opencv.org/3.4.1/db/d61/group__reg.html) for an actual ...
Robert Baron's user avatar
  • 1,132
3 votes

Store and Tag Millions of Images

Storing the files should be the least painful option. However if you need the scalability you need to put it on a distributed file system such as GFS or HDFS. When you are storing them you can ...
Archimedes Trajano's user avatar
2 votes
Accepted

Project icons / images organization

For web applications, consider a third approach: Keep the SVG images in one place. Those images won't change from project to project. Apply color changes to SVG images within a specific site through ...
Arseni Mourzenko's user avatar
2 votes

Using table record id as an image name

Using the id as the file name works fine for most applications. This assumes you are processing the image (resizing, cropping) and saving every image as the same file format. Otherwise you'll also ...
GrandmasterB's user avatar
  • 39.2k
2 votes

Dynamic web application hitting database on front page load to fetch profile image

The industry best practice is to never store images (and other big blobs) in database directly. And only store "references" to those images. The reason for that is that such images overload ...
freakish's user avatar
  • 973
1 vote

Optimal method of storing image thumbnails

The biggest issue you will run into is bandwidth. Quite simply larger images require more bytes than smaller images. Having a down-scaled image for your listing helps save that bandwidth until a ...
Berin Loritsch's user avatar
1 vote
Accepted

Base64 decoded image file size

The base64 encoding is a way to encode binary data using only a set to 64 printable characters. The trick is to regroup the original bits in packets of 6 bits (6 bits can take a value from 0 to 63) ...
Christophe's user avatar
  • 77.9k
1 vote
Accepted

Using table record id as an image name

This is not a good idea, because the user Id is likely a surrogate key generated by a sequence (if using Oracle) or an IDENTITY value (used by a number of database technologies). For instance, ...
Greg Burghardt's user avatar
1 vote

How to Detect Sprites in a SpriteSheet?

I implemented a very decent and fast sprite detection algorithm but different to above and... superior in speed and accuracy (10 seconds on I7 vs ~ instant on a bitmap 2048 * 2048). because of the ...
TheWhitde's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible