21 Oct 2023 |
| @mythicpencil[d]:libera.chat left the room. | 22:35:42 |
| @jjbigthoughts[d]:libera.chat left the room. | 22:35:47 |
| @ericmann[d]:libera.chat left the room. | 22:35:52 |
| @homemadeyeast[d]:libera.chat left the room. | 22:35:57 |
| @thakidd[d]:libera.chat left the room. | 22:36:02 |
22 Oct 2023 |
confident-pretender | HI everyone, I'm trying to use the Intervention image library to convert ico to png files, even with the imagick driver (I'm using Laravel). With imagemagick directly on the command line this works without issues, so I assume it's a limitation on the library? | 23:52:38 |
23 Oct 2023 |
Koala Yeung | ico is basically bmp format. ImageMagick should have no problem with the format. | 00:25:52 |
confident-pretender | Yeah, it's really strange but I keep getting the following "ImagickException - no decode delegate for this image format" | 00:27:03 |
confident-pretender | that's the latest error I got (I've been iterating though some vriants of the code) but sometimes I get this: "Unable to read image from binary data." | 00:27:37 |
confident-pretender | And as mentioned with the CLI directly, it's capable of handling it no problem.
| 00:28:00 |
confident-pretender | I'm making a get request to the favicon and encoding it like so, which works fine for other types of files like svg, etc:
$response = Http::get($faviconUrl);
$manager = new ImageManager(['driver' => 'imagick']);
if (str_contains($faviconRaw, '.ico'))
{
return response($faviconRaw);
} else
{
return $manager->make($faviconRaw)->resize(32,32)->encode('png');
}
| 00:29:40 |
confident-pretender | * I'm making a get request to the favicon and encoding it like so, which works fine for other types of files like svg, etc:
$response = Http::get($faviconUrl);
$faviconRaw = $response->body();
$manager = new ImageManager(['driver' => 'imagick']);
return $manager->make($faviconRaw)->resize(32,32)->encode('png');
| 00:30:01 |
confident-pretender | I saw an issue opened suggesting to write the file first instead of using the raw bytes directly, and let ImageMagick figure out the format from the file extension, but it didn't work either. | 00:31:15 |
confident-pretender | https://github.com/Intervention/image/issues/1007 | 00:31:20 |
Koala Yeung | Would you mind sharing the specific .ico file with issue? | 01:49:40 |
confident-pretender | Sure, I tried a few to make sure it's the format in general but you can try this one which is the one I've been trying with the most: https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196 | 09:44:21 |
confident-pretender | To be honest, for my use case, it would actually make more sense to convert to .ico instead :D but I'm just curious now what the problem is. | 09:56:33 |
confident-pretender | In reply to @yookoala:matrix.org ico is basically bmp format. ImageMagick should have no problem with the format. You mentioned that ico is basically bmp... so what's specific about ico that makes it different then? | 09:57:13 |
| 🍄 HB|B.CS,BSCSIA,A+,Net+,Sec+,CySA+,Pentest+,Project+,ECES,ITILv4,SSCP,MCP,MCSE|🌿 changed their display name from 🍄 HB|A+,Net+,Sec+,CySA+,ECES,ITILv4,SSCP,MCP,MCSE|🌿 to 🍄 HB|A+,Net+,Sec+,CySA+,Pentest+,ECES,ITILv4,SSCP,MCP,MCSE|🌿. | 21:38:07 |
26 Oct 2023 |
| rcares joined the room. | 19:37:33 |
29 Oct 2023 |
| SidTheITGuy joined the room. | 17:20:31 |
7 Nov 2023 |
SidTheITGuy | Hey Everyone, I have a YouTube channel where I post tutorials on Shopify and Laravel/Express. You can check it out here -> https://youtube.com/@SidTheITGuy | 17:46:16 |
8 Nov 2023 |
Koala Yeung | Cool | 01:27:45 |
| Gaël Reyrol joined the room. | 15:51:39 |
9 Nov 2023 |
| HK Defenders changed their profile picture. | 07:49:34 |
12 Nov 2023 |
| Leandro joined the room. | 00:51:47 |
20 Nov 2023 |
| cedrea joined the room. | 20:17:58 |
26 Nov 2023 |
| SidTheITGuy changed their profile picture. | 12:51:59 |
28 Nov 2023 |
| 🍄 HB|B.CS,BSCSIA,A+,Net+,Sec+,CySA+,Pentest+,Project+,ECES,ITILv4,SSCP,MCP,MCSE|🌿 changed their display name from 🍄 HB|A+,Net+,Sec+,CySA+,Pentest+,ECES,ITILv4,SSCP,MCP,MCSE|🌿 to 🍄 HB|B.CS,BSCSIA,A+,Net+,Sec+,CySA+,Pentest+,Project+,ECES,ITILv4,SSCP,MCP,MCSE|🌿. | 20:31:18 |
5 Dec 2023 |
| @appservice:libera.chat left the room. | 14:48:37 |