Take EPS vector ruler and paste it into TIFF image making sure the imported ruler aligns with Illustrators built in rulers to ensure accuracy? - adobe

I have an Adobe Illustrator compatible EPS vector file of a measuring ruler in inches. I have a TIFF file that I opened in Adobe Illustrator. When I copy the ruler vector image and drag it into the opened TIFF file I am unable to align the vector image ruler with the artboard ruler in Illustrator. I am using the artboard ruler guides in Illustrator in order to get the correct vector ruler image scaled to the the TIFF image.
I need the ruler embedded on the TIFF image in order to show scale when printing the document.
The result I am getting when long-pressings Shift while expanding the vector ruler image is perfect alignment on the inches but not on the inch increments. For instance, 1 inch and 2 inch and 3 inch etc. are aligned. 1/4 and the subsequent 1/4 are slightly off from each other by less than a pixel but what ends up occurring is the final 1/4 being off by a whole 2 pixels.

I can't reproduce the problem. I just drew an 10-inch rule, save it as EPS, drag it into a TIF (in Illustrator) and everything looks just fine:
Perhaps your ruler (EPS) is not accurate enough.

Related

Different actual font sizes with the same font's point size in Qt 5

I use QGraphicsScene for drawing some stuff. Look at spinbox in the view.
Font's point size is 14, let my screen be 96 dpi. Looks ok.
When I export my scene to SVG with QSvgGenerator, I set resolution, for example, to 150. In drawing I calculate all with the given dpi and set fonts' sizes with setPointSize(), so text should be the same scale as on the screen.
But what I see is:
And everywhere where I draw text in SVG, doesn't matter is it a QPainter::drawText() or QTextDocument::drawContents(), fonts with the same point size actually a little bigger than on screen.
I can't figured out what is wrong. Any ideas?
P.S. A little different sizes of spinboxes is a scaling in PDF viewer. Look at the proportion of text 1. Font in SVG bigger approximately on 4 pt.
In SVG all is ok. All sizes are correct. Problem is in drawing on the screen, because QPainter uses smaller DPI than physical DPI of the screen when drawing text with point size set. I guess that QPainter uses hardcoded DPI somewhere.

GIMP - Image - How to keep image quality when reduce image size?

I have a image size 300x300mm resolution 72pixel/in.
I want resize it to 120x120mm but keep the quality (by increase resolution?).
First test, I increase its resolution to 180pixel/in then scale it to 120x120 >> image still degrade.
Second test, I increase its resolution to 180pixel/in then scale it to 150x150 >> image still degrade.
Can you help me out? Thanks,
It's not possible to keep quality if you will resize JPEG or PNG, because the way how the algorithms works. Only if you will work on raw or tiff files, you can change your image size without problems. Using links below you can make it less blurry.
Look here:
https://www.gimp.org/tutorials/Smart_Sharpening/ and https://docs.gimp.org/en/gimp-image-scale.html
More on JPEG algorithm:
http://www.whydomath.org/node/wavlets/basicjpg.html
http://www.ams.org/samplings/feature-column/fcarc-image-compression

Scaling an image from pixels to inches

My maths just doesn't seem to be adding up. I've created an image where 30 pixels represents 1 inch. When I save the image, I want it to be scaled by a certain amount so that the pixels are converted to the correct inches.
What do I scale by??!!!
I'm currently scaling by 3.2 but I'm not sure if that's correct because the measurements seem off.
I am not 100% sure what you are asking for, but I assume you are looking for a tool that maps pixels to inches on the screen. This varies by screen resolution and size, if you calculate the DPI (https://www.sven.de/dpi/ shown as PPI) of the monitor you want to show it on you can use this to get the desired conv:
http://auctionrepair.com/pixels.html

How to convert an image to retina display?

I have an 40px by 20px image with 72 Pixels / Inch.
I would like to create a Retina display version.
What should I do? Double the size? Change the resolution?
And in which format should I save it? PNG? JPG? ...
I am using this image on a web site ...
In your image editor, double the size of your image to 80px by 40px.
In your markup set the width to 40 and height to 20.
<img src="example.png" width="40" height="20" />
You should save as png if you need transparency or the image is line art. Save photographs as jpg.
My answer is convert your image into SVG
Do you have Illustrator? If so save your image as SVG (and have a png as a fallback if you want).
<img src="images/logo.svg" alt="" />
<img src="images/logo.png" alt="" />
As long as you use Modernzr which can work to get svg friendly in most browsers.
You can see it here how it's done:
http://toddmotto.com/mastering-svg-use-for-a-retina-web-fallbacks-with-png-script/
Hope it helps :)
A retina display image (or high-density display image) is double the pixel size of a standard image - its scaling factor is 2.0. This means that yes, for your 40x20 pixel image, you will need to make an 80x40 pixel version (that is then displayed at double pixel density on screen). The format doesn't matter as much, both PNG and JPG will work fine (PNG will not degrade in quality with compression, but the file size will be larger than JPG).
However, the problem with high-density display images is that they take up more bandwidth, and are unnecessary for devices that don't have the high resolution or Retina displays. This means more data transferred over the network, inconveniencing mobile users and those with limited data transfer caps.
One solution is to use something like Retina.js. It's an open-source javascript client script that will automatically load the retina-sized image from your server and swap it in-place for the low-density version, if it exists. It follows Apple's standard for naming high-resolution images - #2x, so you can have HTML code like this:
<img src="/images/my_image.jpg" />
and the script will search your server also for /images/my_image#2x.jpg. If it exists, it will load it and swap it in-place without having to worry about messing with CSS.
Generally as of this writing there are two types of retina displays, hence you should create an image for each type.
For a 2× device, you would need to produce twice the logical pixels' width and height with a resolution of 144 pixels per inch (72 ppi ✕ 2).
For a 3× device, you would need three times the logical pixels with a resolution of 216 pixels per inch (72 ppi ✕ 3).
Examples of 2× devices are the MacBook Pro (released in 2012-2019) and most iPhone since the iPhone 4. Examples of 3×
devices are the iPhone 6 Plus, and the iPhone X. However the iPhone Xr is a 2× device.
Hence for your case you would need images in 80 px ✕ 40 px and 120 px ✕ 60 px for 2× and 3× devices respectively.
Retina displays are not dependent on the specific bitmap image format. You can use the original image format. For websites, you should use JPG for photographs and PNG for line-art graphics saved as bitmaps.
You should not just blindly enlarge images otherwise this would create a blurred results – it would no better than if you don't include any high-resolution versions in the first place. Either obtain the original higher-resolution version of the images (typically from vector graphic source) and downscale them or use a machine-learning based image enhancement solution such as Bigger Picture to "convert" your image into a higher resolution.
Photoshop gives you a couple options for resizing an image. For instance if the image is iPhone size you can increase the image size by 200%. Photoshop gives you a couple options for resampling of the image. Bicubic, bilinear and etc. This will remake the image at a higher resolution and interpolate the missing pixels. Hope this helps.
This is a really interesting article showing a nice option for dealing with high res images:
http://blog.netvlies.nl/design-interactie/retina-revolution/
Basically, it's saying that, if you make the image quite large (width and height) but then save it at quite low quality, it still comes out very sharp on retina displays. It means that you can use the one same image on all devices, and that the file size is very low, too, which is an extra bonus. You can set the width and height of the image in your CSS and/or HTML to set it to the visual dimensions you desire.
This article blew me away, and is my go-to approach for dealing with both retina-friendly and bandwidth-friendly images. Win, win.
You can use CSS opacity option.
This will give you an transparent look of your image based upon the value you set to opacity.
Try learning opacity: http://www.w3schools.com/css/css_image_transparency.asp

How do I resize a flat vector icon so that it preserves hard edges?

I recently purchased Drew Wilson's Pictos icon library. It is a library of flat, monochromatic icons for use on the web and elsewhere. The only issue is: they're vectors. I know my way around Illustrator a little bit, but ultimately I want to import these icons into Photoshop CS4 and resize to various dimensions.
When I import an icon and resize it to, say, 20x20 pixels, I notice that there is a fair bit of aliasing around the edges of the icon. I'm sure there is some magic number where the edges of these icons will remain crisp, but I can't find any option or setting that will allow me to size these icons properly.
How can I snap these icons to the closest size that removes or minimizes the aliasing?
The aliasing / pixelating is because vectors export out of illustator # whatever size they're copied #
Try opening the icons in illustrator... scaling them waaay up
And then just keep a copy of the huge ones in a separate layer
Copy that layer when you want to scale it down ..annnd that way you'll have a copy to work with..and u won't have to re
Open the file every time u need to make an edit
And a good rule of thumb for pixelation is
You can always size down.. but sizing up will create pixelating in bitmaps
Chances are, you have your logo in .eps format. If you do, open your .eps file in Photoshop. A dialog box will pop up asking the size you want to import. Be sure to select RGB color if this will display on the web. Select the Anti-aliasing checkbox. When your file opens up, zoom in, and you'll notice that Photoshop has neatly anti-aliased all of your edges for you.

Resources