Questions tagged [scaling]

Scaling refers to the image manipulation function of re-sizing an image. For issues to do with handling increasing workload gracefully in software or network components, see "scalabilty".

Scaling refers to the image manipulation function of re-sizing an image.

2497 questions
9
votes
3 answers

Does scaling of barcode image damages it?

I have a barcode image. I have to make it smaller. Can that damage the barcode? Proportional scaling Not proportional scaling (only height changes) Barcodes are: Type UPC-A / EAN-13 "vertical lines". Sorry not an expert in barcodes, thought the…
User
  • 31,811
  • 40
  • 131
  • 232
8
votes
4 answers

Java2D: scaling issues

I'm a reasonably experienced Java programmer but relatively new to Java2D. I'm trying to scale an image but I'm getting poor quality results. The image is a preview of a panel so contains things like text and textfields. I'll always be scaling down,…
Johnathan
  • 318
  • 4
  • 8
8
votes
2 answers

OpenGL surface view scaling for different DPIs

I have a device with 800x480 res. When I create GLSurfaceView, I get an onSurfaceChanged call with 533x320 (apparently with 1.5 HDPI modifier applied) and surface is upscaled. So when I draw 1 pixel thick line is looks really bad, and I can't have…
Mark
  • 603
  • 4
  • 10
8
votes
5 answers

Planning Scalable Web Application Development

What language, framework, and hosting considerations should one make before starting development of a scalable web application?
BWelfel
  • 532
  • 6
  • 20
8
votes
1 answer

Scaling a Bitmap to fit in a canvas

Im trying to write a game on droid, the way i take care of different screen resolutions is i make a bitmap with a target resolution (320x480), make a canvas from it and draw all the elements on it using fixed coordinates, then i just draw this…
user924941
  • 943
  • 3
  • 12
  • 24
8
votes
1 answer

Socket.io scaling issue

I have 3 nodejs apps running on a GCP compute engine instance(2cpu, 2GB ram, ubuntu 20.04) with Nginx reverse proxy. One of them is a socket.io chat server. The socket.io app uses @socket.io/cluster-adapter to utilize all available CPU cores. I…
Sujith S Manjavana
  • 1,417
  • 6
  • 33
  • 60
8
votes
2 answers

Default Windows is scaled to 150%?

I am UX designer designing educational activities for schools. These a responsive websites. When I have come to do QA I have seen everything is HUGE on Windows. The devs tell me that default resolution for Windows is 150%... Um – what? I've been in…
Tim Martin
  • 101
  • 1
  • 1
  • 3
8
votes
1 answer

possible to use calc() in svg line?

I'm not sure if this is the best approach. I'm trying to make an SVG that has parts that scale and parts that are fixed. It looks like this: When the web page loads, I don't know what the height of the container for it will be but I know the width.…
raphael75
  • 2,982
  • 4
  • 29
  • 44
8
votes
1 answer

JavaFX 8 Dynamic Node scaling

I'm trying to implement a scene with a ScrollPane in which the user can drag a node around and scale it dynamically. I have the dragging and scaling with the mouse wheel working as well as a reset zoom, but I'm having trouble with the calculations…
RonSiven
  • 939
  • 2
  • 10
  • 23
8
votes
1 answer

scikit-learn MinMaxScaler produces slightly different results than a NumPy implemantation

I compared the scikit-learn Min-Max scaler from its preprocessing module with a "manual" approach using NumPy. However, I noticed that the result is slightly different. Does anyone have a explanation for this? Using the following equation for…
user2489252
8
votes
2 answers

Architecture for a globally distributed Neo4j?

I am doing some work for an organisation that has offices in 48 countries of the world. Essentially the way they work now is that they all store data in a local copy of the database and that is replicated out to all the regions/offices in the world.…
gremwell
  • 1,419
  • 17
  • 23
8
votes
2 answers

LibGDX: Filtering a scaled TextureRegion

I have several objects with different textures for different states, so I am using a TextureAtlas made with TexturePacker, and resizing the TextureRegion where I need it. I have to resize because not only am I trying to support both 720p and 1080p,…
Mike Carpenter
  • 197
  • 1
  • 2
  • 9
8
votes
1 answer

LibGDX - How to smooth out actor drawable when scaling a Scene2d stage?

This is my set-up: stage = new Stage(1280, 800, false); button = new Button(drawableUp, drawableDown); stage.add(button); this gets rendered as following: @Override public void render(float delta) { Gdx.gl.glClearColor(RED,GREEN,BLUE,ALPHA); …
user2127821
8
votes
3 answers

How do I efficiently change a MySQL table structure on a table with millions of entries?

I have a MySQL database that is up to about 17 GB in size and has 38 million entries. At the moment, I need to both increase the size of one column (varchar 40 to varchar 80) and add more columns. Many of the fields are indexed including the one…
Cris Favero
  • 632
  • 8
  • 16
8
votes
2 answers

Mobile Safari renders scaled on Canvas?

I try to render a local image loaded with a FileReader object on a Canvas on Safari Mobile on iOS6. But every image with data-URL gets rendered vertically scaled. Is this a bug? On Chrome it's rendered correctly. Demo Script ScreenShot from iOS6…
André Fiedler
  • 1,093
  • 4
  • 16
  • 25