Alia
Resize image with Mogrify
Hi guys,
I am working on an image where I want to resize my logo on that image.
It’s the code that I have written so far. The logo on the frame is very large. I want to resize my logo.
Anyone can help me out? How I can do that?
Code:
System.cmd(“convert”, [“#{path<>”/“<>frame_name}”,“#{logo}”,“-gravity”,“northeast”,“-geometry”,“+26+26”,“-composite”,“#{logo_path<>”/“<>frame_name}”])
Most Liked
kokolegorille
Hello and welcome,
There are plenty of ways to resize an image… Like keeping ratio, or not.
Here are some params that work for me.
{:convert, "-resize 256x144^ -gravity center -extent 256x144 -format png", :png}
The syntax is for waffle, but You can guess what I am using.
Alia
yeah, I got it. Thanks for your time. @kokolegorille
I tried to do this but instead of just changing the logo on the frame, it is resizing the entire image.
![]()
kokolegorille
Oh, I did not get your requirements right… my command is just resizing the original image.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








