I have bulk of images (1000+); each image consists of several pictures as a result of scanning several pictures to single image (JPG)
I am looking for a Batch tool that will be able to automatically crop and save the images as separated files
Is it possible? Any such tool?
Thank you very much!
If the size of each crop and positions are the same, you can easily write processing steps using ImageMagick. Then, using some script language you can process whatever number of images you want.
Related
I would like to add text to an image using Images in julia.
I googled but results are not much helpful in this regard!
Please guide me adding text at specified co-ordintes to an image using Images in julia.
I am not aware of a solution using only Images, but you can do something like this with Plots and Images
using Plots, Images
img = load("test.png")
plot(img)
annotate!(1.,1.,text("test",20))
I am using matplotlib to draw a graph using some data and I have saved it in Pdf format.Now I want to add a logo to this file.How can I do this.
Thanks in advance
If you can do it the other way round, it is easier:
plot the image
load the logo from file with, e.g. Image module (PIL)
add the logo with plt.imshow, use the extent keyword to place it correctly
save the image into PDF
(You may even want to plot the logo first, so that it stays in the background.)
Unfortunately, this does not work with vector graphics, but as logos usually are not that large, you may use a .png or even a .jpg.
If you already have the PDF's then this is not a matplotlib or python question. You need some PDF editing tools or libraries to add the logo. Possible, but an entirely different thing.
I have an Autocad drawing which is a plan for land squares where each square contains a number.
I tried to convert it to image by choosing: File --> Export Data --> and file format Bitmap (bmp). (I have Autocad 2013 Mac version)
the file converted to image, but the quality is too bad, I can't see the land numbers inside the square when I zoom in the image.
I tried also with Postscript (PS file format), quality is a bit better but it's still bad.
Is there away to convert Autocad file to image but still preserve it's high quality details
I need to convert the file to image because I would like to publish it online on my website. maybe there other was to publish autocad file on line, if so, please advice. But the trick I want the background of the autcad (plan) to be transparent so that I could display it on top of Google maps. I if I used autocad plugin I can't make it transparent. right?
Use the PLOT (for the current drawing) or PUBLISH (for batching) commands to produce high quality images.
I'm new to matlab and would greatly appreciate if anyone could guide me about .MAT file. I'm doing a image retrieval system which requires a database of 1000 images. Currently, i have a .mat file which contains the training data for 100 images but i would like to increase it to 1000 images. How do i edit the .mat file or how do i go about creating a .MAT file which it can store 1000 images and its histograms. Your help is greatly appreciated. Thanks.
I would not recommend having a 1000 images plus histograms in one mat file. Matlab is horrible at handling large mat files (+500Mb or so). It crashes often when saving, at least that is my experience. Instead, save one image and histogram in one mat file, place them in one folder, and give the files some meaningful names so you can programmatically find them again. ls (Linux) and dir (windows) work fine from Matlab and return a listing of a directory for you to use or parse in some way.
Also, you will get a good speed up for cases where you don't have to load all images.
Regards
Is there a program which lets you dump an image and then you can put all the images you dumped into one image? I want to know this so I can build my tileset faster....
Thanks.
If you are on Linux, OS X, or Windows there is a great command line image manipulation tool called ImageMagick. Included in it is the montage utility that takes a bunch of images and tiles them together, saving them in one file. The most basic command form is:
montage input1.png input2.png input3.png input4.png montage-output.png
If you mean HTML sprites, this website does it automatically: http://spriteme.org/. Also see this Stack Overflow question: Tools to make CSS sprites?