I want to combine GIF images with Ruby

Asked 2 years ago, Updated 2 years ago, 79 views

I just want to attach the GIF image, but I don't know how to do it.
When I looked it up, I could only find RMagick and MiniMagick that I needed.
The processing itself is simple, so if there is a way not to use ImageMagic, I would like to use it.
There is no problem using Gem without ImageMagic.

Here's what I'm trying to do:

+---+
| A|
+---+

  +

+---+
| B|
+---+

  ↓

+-------+
| AB|
+-------+

I would appreciate it if you could tell me the sample code and the site.
I look forward to your kind cooperation.

ruby image

2022-09-30 21:41

1 Answers

Is Ruby/GD fit for purpose?

This extended library has been temporarily unable to handle GIF in the past, but now it can read and write GIF again.

There may not be concatinate or +, but if you get each image size, create a new image, and use per copyMerge method, you may be able to do the desired behavior.


2022-09-30 21:41

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.