I've an image like the one in the following link
https://www.freecodecamp.org/news/how-to-center-an-image-using-text-align/
I want to cut and move one half of the image close to the other (one building close to the other in the example image share above). In real case, I have a similar image with white space in between. To cut one part of an image I do Object-> Clip -> Set on the selection. This crops the selection alone. But I am not sure how to select and move the selection.
Could someone please help?
Duplicate the image, then clip both images to the two parts that you need. Then use snapping to move them both together exactly.
Or (better), use a raster graphics editing tool of your choice and do the same. While the above-described workflow works, Inkscape, being a vector graphics editor, is not the appropriate tool for this kind of thing.
Related
I am converting one of my apps from using plain instruction images to using the new apple Augmented Reality (AR). For this I am drawing a sketchup model for each instructional image. Everything is working nicely, I have created components (table, balls...) that I can reuse easily.
However, what is the best way to draw the below instruction lines in sketchup?
Additionally, as you can see the app is about snooker, how can I easily make sure that each instructional line is positioned at the height of the center of the balls?
I would use the protractor tool.
Note the angle I can specify. Draw two of these help-lines from each corner, then use the pen tool to fill in the triangle.
For the additional part. You can select the line you want to edit. Right click and select divide, moving closer to either endpoint of the line would create larger or smaller dividents.
Then, just change color of the line.
I'm designing a website which uses a SVG-document as background. I want this image to tile on the X-axis. Which works great, but I wanted to know if it is possible to show one group in the SVG only once, such that in subsequent tiles the group is hidden.
The above image visualizes what I want to achieve. The image having one group (in the image the red circle) that is invisible in the following tiles.
Now I am aware such things can be achieved using additional CSS backgrounds but I am really interested if such thing could be achieved using a single SVG background.
Thanks in advance!
The answer is no. If you are relying on CSS to tile the background - ie. with repeat-x, then no. there isn't any way to do what you want. When an SVG is used as a background like that, it becomes immutable - effectively the same as a PNG or a JPEG.
You will need to use a different method.
I am using aplypy to create an RGB image of the Eagle nebula from three FITS files, representing the red, green and blue components of the image. The FITS files are available here, 673nm being the red, 656nm the green and 502nm the blue.
import aplpy
aplpy.make_rgb_cube(['673nmos.fits','656nmos.fits','502nmos.fits'], 'nmod_cube.fits')
aplpy.make_rgb_image('nmod_cube.fits','nmod.png')
f = aplpy.FITSFigure('../data/nmod_cube_2d.fits')
f.show_rgb('../data/output/nmod.png')
The image should look something like this, but comes out looking like the image below. The blue component is clearly misaligned with the red and green.
make_rgb_cube is supposed to realign the three images in to the same projection based on the WCS information in each FITS header, according to the docs, but it doesn't seem to be working in this case.
Do I need to employ a star matching library to get the alignment accuracy?
There is an error in the WCS coordinates in the header of the Blue FITS file. I have contacted spacetelescope.org to alert them.
Another example from the site, of M17, is created correctly using the aplpy script shown in the question. Blinking through each filter using DS9, as suggested in the comments, confirms the correct alignment.
Use the STScI software TweakReg to align the images and get a good alignment before combining. More information and worked examples can be found on the DrizzlePac website.
TweakReg:
Combining images using astrodrizzle requires that the WCS information in the headers of each input image align to within sub-pixel accuracy. The tweakreg task allows the user to align sets of images to each other and/or to and external astrometric reference frame or image.
It is optimized for use with HST instruments, but can be adapted for other observatories/instruments.
I have a image and I want to extract a particular portion of a whole image.
what can I do for?
I want to extract the taj Mahal from this image.
This image appears to be a JPEG. JPEG images do not contain layers. Your best bet is going to be to start with a better image. Even then, you'll almost certainly need to paint in portions. If this is really the only image you can find at the correct angle then you'll be doing a lot of hand editing to get what you want.
Try: https://www.google.com/search?q=taj+Mahal&tbm=isch
I need to create a div witch will be filled with another image, in the pocket of the image above:
The image don't have a fixed size, so it needs to be repeated.
Look at CSS3 transforms, specifically rotate (possibly using skew, depending on your use case). You'll probably have to put the picture behind the pants, in order to get it to be the right shape.
You could do it in CSS but I think it would be much easier to use a photo editing software and paste on the images and save it as a new file.