I want to export my image with multiple sizes (192x192, 144x144, 96x96, 72x72, 44x44).
Is there an easy and effective way to do that or do I have to scale it manually each time?
See the ofn-export-sizes script. The ZIP contains an HTML doc. Installation instructions at the bottom of the download page.
Related
i'm developing an App where I can upload images/photos from my phone photo gallery (ios device) to firebase.
Since I want to upload the images/photos in original format (e.g. *.HEIC for pictures taken by an iPhone) I need a plugin which allows me to do that.
Following plugin's I've tried so far:
wechat_assets_picker: this one does what I want to have and returns me a temporary path which contains the the picked image in it's original format (e.g.: /anyPath/tmp/IMG_0024.HEIC). But since I don't really like the UI of wechat_assets_picker, I would like to have sth. else. Maybe more native looking
image_picker: returns a path where the picture is converterd to *.jpeg (e.g.: /anyPath/image_picker_randomNumber.jpg). This is not what I want!
images_picker: same as image_picker... converts the image to *.jpg
image_pickers: similar to wechat_assets_picker but it does what I want. But I don't like the UI either
likk_picker: same - not what I'm looking for
file_picker: same - returns *.jpg
I'm getting tired trying all the plugins.
Is there anyone who can support? Maybe any other way how to pick an image from my gallery in it's original format and quality?
Thanks!
Given the fact that other plugins usually compress HEICs when picking, I would suggest you consider the below solutions:
wechat_assets_picker allows you to build your widgets using delegations. By override build delegates, you can customize each part or the whole part of the interface.
wechat_assets_picker depends on the underlying plugin photo_manager which allows you to build your widgets from the bottom on your own.
I have a pdf I'd like to split into individual pictures, each page is a picture, I am using the following imagemajick command to do so:
convert -density 400 mypdf.pdf out.png
and it works fine however I have tested it on the first 5 pages of my pdf and it took 10 seconds, at this rate it should take about half an hour to split my pdf, which seems strange to me considering that I'm not really doing anything fancy, I'm not rotating the images or modifying them in anyway, I'd like to know if there is a faster way to do this. Thanks
Also, I'd like to preserve the quality, I was doing it before without the density flag but the quality dropped dramatically.
PDF rendering is a bit of a mess.
The best system is probably GhostScript, and MuPDF, its library form. It's extremely fast and scales well to large documents. Unfortunately the library licensing (AFL) is difficult and you can't really link directly to the binary.
ImageMagick gets around this restriction by shelling out to the ghostscript command-line tool, but of course that means that rendering a page of a PDF is now a many-stage process: the PDF is copied to /tmp, ghostscript is executed with a set of command-line flags to render the document out to an image file in /tmp, this temporary image file is read back in again, a page is extracted and finally the image is written to the output PNG.
On my laptop I see:
$ time convert -density 400 nipguide.pdf[8] x.png
real 0m2.598s
The other popular PDF renderer is poppler. This came out of the xpdf document previewer project, so it's fast, but is only really happy rendering to RGB. It can struggle on large documents too, and it's GPL, so you can't link to it without also becoming GPL.
libvips links directly to poppler-glib for PDF rendering, so you save some copies. I see:
$ time vips copy nipguide.pdf[page=8,dpi=400] x.png
real 0m0.904s
Finally, there's PDFium. This is the PDF render library from Chrome -- it's the old Foxit PDF previewer, rather crudely cut out and made into a library. It's a little slower than poppler, but it has a very generous license, which means you can use it in situations where poppler would just not work.
There's an experimental libvips branch which uses PDFium for PDF rendering. With that, I see:
$ time vips copy nipguide.pdf[page=8,dpi=400] x.png
real 0m1.152s
If you have Python installed, you should try PyMuPDF. It is a Python binding for MuPDF, extremely easy to use and extremely fast (3 times faster than xpdf).
Rendering PDF pages is bread-and-butter business for this package. Use a script like this:
#----------------------------------------------------------------------------------
import fitz
fname = sys.argv[1] # get filename from command line
doc = fitz.open(fname) # open the file
mat = fitz.Matrix(2,2) # controls resolution: scale factor in x and y direction
for page in doc:
pix = page.getPixmap(matrix=mat, alpha=False)
pix.writePNG("p-%i.png" % page.number) # write the page's image
#----------------------------------------------------------------------------------
More to "Matrix":
This form scales each direction by a factor of 2. So the resulting PNG becomes about 4 times larger than the default version in original, 100% size. Both dimensions can be scaled independently. Rotation or rendering only parts of a page is possible also.
More to PyMuPDF:
Available as binary wheel for Windows, OSX and all Linux versions from PyPI. Installation therefore is a matter of a few seconds. The license for the Python part is GNU GPL 3, for the MuPDF part GNU AFFERO GPL 3. So it's open source and freeware. Creating commercial products is excluded, but you can freely distribute under the same licenses.
According to the JIRA documentation you can custommise the Word export by modifying the velocity templates in atlassian-jira-webapp.war/WEB-INF/classes/templates/plugins/issueviews
https://confluence.atlassian.com/jirakb/customise-word-export-template-for-jira-applications-296094716.html
How do I embed an image in the document so that it is portable and doesn't have any image links to the JIRA webpage since sometimes they don't render if you don't have access.
Embedding an image inside HTML is possible, using the data URI feature. Here is a short tutorial. But there are browser-dependent size limits... and one has still to check that this data URI image will be preserved through the JIRA Word export.
I know that I can use ImageMagick's convert tool to turn different image files into PDF documents. However, is there some way to specify what version of PDF document I want to use for the output? Can I convert an image to a PDF v1.4 document?
I am trying to find a way to automate the conversion of image files (probably SVG) to PDF files that need to be sent to a printing service. The printer's service requires the PDF files to meet certain requirements, and one of them is that the PDF file is v1.4. My version of convert is "6.5.7-8 2010-12-02 Q16".
Thanks,
Carl
This question on superuser.com
https://superuser.com/questions/193791/batch-convert-pdf-versions
will give you some hints how to change the version number in the PDF afterwards.
Is it possible to remove watermark placed with imagemagick library in past?
Thanks ;)
Update
I mean, I need to remove my logo from images. Can't find in official documentation, how to remove watermark from image.
Yes, if you restore the original file directory from a backup. I'm presuming that you've rendered a single-layered file, where IM composited/overlayed the watermark on the image. There is no reliable and practical way to remove such a mark generally manually, let alone via batch process. Exceptions might include if the watermark always rendered over a flat color, etc.
The logo can be removed easily using ffmpeg, by using its delogo filter. All you need to supply is the co-ordinates and dimensions of the logo present on the video.
This works on videos very swiftly, you can convert your image to a video and apply this filter, or even compile group of images to a video and later break it into frames to obtain clean images. All of this can be easily done using ffmpeg only.
eg for the filter syntax: ffmpeg -i (your video url) -f "delogo=x=0:y=0:w=100:h=77:band=10" -r (output file url)
Find the complete documentation here.