Re: [racket-users] Is there a good Racket DSL alternative to Image Magick?

2021-05-11 Thread Daniel Prager
Hi Robert

> Even better if I could point the function at a directory, it finds all of
the images in it, and creates the data structure for me. Any ideas?

You can get the files in a directory using *directory-list *and filter for
the image files using a regex.

(for ([f (directory-list "/some/path")] #:when (regexp-match? "\\.png$" f))
 (displayln f))

Dan

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAFKxZVV2t%3Dn_PXY4XN%2Ba7rNA9YAL6hW_1VHKupeA8OQOXSwfYw%40mail.gmail.com.


Re: [racket-users] Is there a good Racket DSL alternative to Image Magick?

2021-05-11 Thread Robert Haisfield
More specifically, I'm trying to do what I talk about here. Can I do this 
in Racket? https://twitter.com/RobertHaisfield/status/1392272268022095872

On Tuesday, May 11, 2021 at 4:42:43 PM UTC-6 Robert Haisfield wrote:

> Okay, so I figured out how to do what I want on individual photos using 
> bitmap/file and 2htdp/image, but I'm trying to find a more programmatic way 
> to do it. Basically, I'd love to create a data structure that feeds into 
> the file path, width, and height into the image-resizer function. Even 
> better if I could point the function at a directory, it finds all of the 
> images in it, and creates the data structure for me. Any ideas?
>
> *No, I'm not trying to just resize photos (this would be much easier if 
> that's all I had to do), the thing I'm working with requires me to add 
> whitespace to the sides of the images to have them display properly.*
>
> [image: CleanShot 2021-05-11 at 16.31...@2x.png]
>
> On Tuesday, May 11, 2021 at 3:06:20 PM UTC-6 Jens Axel Søgaard wrote:
>
>> Hi Robert,
>>
>> There are some bindings for Magick in the example folder for the FFI 
>> library.
>>
>> https://github.com/racket/racket/tree/master/pkgs/racket-doc/ffi/examples
>>
>> The bindings are in magic.rkt and examples of use are in use-magick.rkt 
>> (see the bottom).
>>
>> /Jens Axel
>>
>>
>> Den tir. 11. maj 2021 kl. 22.15 skrev 'John Clements' via Racket Users <
>> racket...@googlegroups.com>:
>>
>>> Racket has the ability to read a variety of different image files. I 
>>> would go first to 2htdp/image’s “bitmap/file” to read images. “save-image” 
>>> can write images (but only as png files). I believe there are also an array 
>>> of lower-level image manipulation functions that are likely to have a less 
>>> friendly interface :).
>>>
>>> Apologies in advance for any misleading information I might be 
>>> providing….
>>>
>>> John
>>>
>>> > On May 11, 2021, at 1:09 PM, Robert Haisfield  
>>> wrote:
>>> > 
>>> > Alternatively, does the normal images function for Racket work? When I 
>>> was looking through the documentation I saw a lot about creating shapes but 
>>> not about using image files.
>>> > 
>>> > On Tuesday, May 11, 2021 at 2:03:33 PM UTC-6 Robert Haisfield wrote:
>>> > Hmm does the video language work for image files? If so, then I think 
>>> it might work.
>>> > 
>>> > On Tuesday, May 11, 2021 at 9:03:35 AM UTC-6 Sage Gerard wrote:
>>> > I hope that has what Robert is looking for, but I don't recognize that 
>>> speech. In fact, I have a false memory, because I'm not finding the speech 
>>> I'm looking for on https://con.racket-lang.org/2018/#speakers
>>> > 
>>> > On 5/11/21 10:19 AM, Bruce O'Neel wrote:
>>> >> This might be it.
>>> >> 
>>> >> (seventh RacketCon): Leif Andersen -- Movies as Programs: The Story 
>>> of a Racket - YouTube
>>> >> 
>>> >> 
>>> >> 
>>> >> 
>>> >> 
>>> >> 11 May 2021 15:30 Sage Gerard  wrote:
>>> >> I don't know of one off hand, but I believe RacketCon 2018 (?) 
>>> included a presenter that showed a PostScript-like DSL for designers and 
>>> artists.  If pict not cover your needs, maybe dig into the presentations?
>>> >> 
>>> >> Failing that, can you show what you'd hope the syntax would look 
>>> like? That would probably help point you in the right direction,
>>> >> 
>>> >> On 5/11/21 9:26 AM, Robert Haisfield wrote:
>>> >>> I have to do a bunch of .jpg and .png image resizings and was 
>>> looking for a programmatic way to do it. Is their a Racket DSL for this? --
>>> >>> You received this message because you are subscribed to the Google 
>>> Groups "Racket Users" group.
>>> >>> To unsubscribe from this group and stop receiving emails from it, 
>>> send an email to racket-users...@googlegroups.com.
>>> >>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/racket-users/0d576c32-7d4d-4944-9cbc-c12f04406fccn%40googlegroups.com
>>> .
>>> >> -- ~slg --
>>> >> You received this message because you are subscribed to the Google 
>>> Groups "Racket Users" group.
>>> >> To unsubscribe from this group and stop receiving emails from it, 
>>> send an email to racket-users...@googlegroups.com.
>>> >> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/racket-users/6e3aacdc-015b-2484-3bee-0c08e3fb612d%40sagegerard.com
>>> .
>>> >> 
>>> >> -- 
>>> >> You received this message because you are subscribed to the Google 
>>> Groups "Racket Users" group.
>>> >> To unsubscribe from this group and stop receiving emails from it, 
>>> send an email to racket-users...@googlegroups.com.
>>> >> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/racket-users/1620742795-01b81de5d6862fd390ec60605ee3bc9d%40pckswarms.ch
>>> .
>>> > --
>>> > ~slg
>>> > 
>>> > 
>>> > -- 
>>> > You received this message because you are subscribed to the Google 
>>> Groups "Racket Users" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to 

Re: [racket-users] Is there a good Racket DSL alternative to Image Magick?

2021-05-11 Thread Jens Axel Søgaard
Hi Robert,

There are some bindings for Magick in the example folder for the FFI
library.

https://github.com/racket/racket/tree/master/pkgs/racket-doc/ffi/examples

The bindings are in magic.rkt and examples of use are in use-magick.rkt
(see the bottom).

/Jens Axel


Den tir. 11. maj 2021 kl. 22.15 skrev 'John Clements' via Racket Users <
racket-users@googlegroups.com>:

> Racket has the ability to read a variety of different image files. I would
> go first to 2htdp/image’s “bitmap/file” to read images. “save-image” can
> write images (but only as png files). I believe there are also an array of
> lower-level image manipulation functions that are likely to have a less
> friendly interface :).
>
> Apologies in advance for any misleading information I might be providing….
>
> John
>
> > On May 11, 2021, at 1:09 PM, Robert Haisfield <
> roberthhaisfi...@gmail.com> wrote:
> >
> > Alternatively, does the normal images function for Racket work? When I
> was looking through the documentation I saw a lot about creating shapes but
> not about using image files.
> >
> > On Tuesday, May 11, 2021 at 2:03:33 PM UTC-6 Robert Haisfield wrote:
> > Hmm does the video language work for image files? If so, then I think it
> might work.
> >
> > On Tuesday, May 11, 2021 at 9:03:35 AM UTC-6 Sage Gerard wrote:
> > I hope that has what Robert is looking for, but I don't recognize that
> speech. In fact, I have a false memory, because I'm not finding the speech
> I'm looking for on https://con.racket-lang.org/2018/#speakers
> >
> > On 5/11/21 10:19 AM, Bruce O'Neel wrote:
> >> This might be it.
> >>
> >> (seventh RacketCon): Leif Andersen -- Movies as Programs: The Story of
> a Racket - YouTube
> >>
> >>
> >>
> >>
> >>
> >> 11 May 2021 15:30 Sage Gerard  wrote:
> >> I don't know of one off hand, but I believe RacketCon 2018 (?) included
> a presenter that showed a PostScript-like DSL for designers and artists.
> If pict not cover your needs, maybe dig into the presentations?
> >>
> >> Failing that, can you show what you'd hope the syntax would look like?
> That would probably help point you in the right direction,
> >>
> >> On 5/11/21 9:26 AM, Robert Haisfield wrote:
> >>> I have to do a bunch of .jpg and .png image resizings and was looking
> for a programmatic way to do it. Is their a Racket DSL for this? --
> >>> You received this message because you are subscribed to the Google
> Groups "Racket Users" group.
> >>> To unsubscribe from this group and stop receiving emails from it, send
> an email to racket-users...@googlegroups.com.
> >>> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/0d576c32-7d4d-4944-9cbc-c12f04406fccn%40googlegroups.com
> .
> >> -- ~slg --
> >> You received this message because you are subscribed to the Google
> Groups "Racket Users" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an email to racket-users...@googlegroups.com.
> >> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/6e3aacdc-015b-2484-3bee-0c08e3fb612d%40sagegerard.com
> .
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups "Racket Users" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an email to racket-users...@googlegroups.com.
> >> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/1620742795-01b81de5d6862fd390ec60605ee3bc9d%40pckswarms.ch
> .
> > --
> > ~slg
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Racket Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to racket-users+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/b6a89a78-c92c-41c1-960a-49d64d8a5366n%40googlegroups.com
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/404c8fad-befc-4b01-8728-48ce9b912117%40mtasv.net
> .
>


-- 
-- 
Jens Axel Søgaard

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CABefVgwcGg867z5aEcSL2ub9sVci%3D08UtvNk%2BgRnGX_5WZd9mQ%40mail.gmail.com.


Re: [racket-users] Is there a good Racket DSL alternative to Image Magick?

2021-05-11 Thread 'John Clements' via Racket Users
Racket has the ability to read a variety of different image files. I would go 
first to 2htdp/image’s “bitmap/file” to read images. “save-image” can write 
images (but only as png files). I believe there are also an array of 
lower-level image manipulation functions that are likely to have a less 
friendly interface :).

Apologies in advance for any misleading information I might be providing….

John

> On May 11, 2021, at 1:09 PM, Robert Haisfield  
> wrote:
> 
> Alternatively, does the normal images function for Racket work? When I was 
> looking through the documentation I saw a lot about creating shapes but not 
> about using image files.
> 
> On Tuesday, May 11, 2021 at 2:03:33 PM UTC-6 Robert Haisfield wrote:
> Hmm does the video language work for image files? If so, then I think it 
> might work.
> 
> On Tuesday, May 11, 2021 at 9:03:35 AM UTC-6 Sage Gerard wrote:
> I hope that has what Robert is looking for, but I don't recognize that 
> speech. In fact, I have a false memory, because I'm not finding the speech 
> I'm looking for on https://con.racket-lang.org/2018/#speakers
> 
> On 5/11/21 10:19 AM, Bruce O'Neel wrote:
>> This might be it.
>> 
>> (seventh RacketCon): Leif Andersen -- Movies as Programs: The Story of a 
>> Racket - YouTube
>> 
>> 
>> 
>> 
>> 
>> 11 May 2021 15:30 Sage Gerard  wrote:
>> I don't know of one off hand, but I believe RacketCon 2018 (?) included a 
>> presenter that showed a PostScript-like DSL for designers and artists.  If 
>> pict not cover your needs, maybe dig into the presentations?
>> 
>> Failing that, can you show what you'd hope the syntax would look like? That 
>> would probably help point you in the right direction,
>> 
>> On 5/11/21 9:26 AM, Robert Haisfield wrote:
>>> I have to do a bunch of .jpg and .png image resizings and was looking for a 
>>> programmatic way to do it. Is their a Racket DSL for this? --
>>> You received this message because you are subscribed to the Google Groups 
>>> "Racket Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to racket-users...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/racket-users/0d576c32-7d4d-4944-9cbc-c12f04406fccn%40googlegroups.com.
>> -- ~slg --
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/racket-users/6e3aacdc-015b-2484-3bee-0c08e3fb612d%40sagegerard.com.
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/racket-users/1620742795-01b81de5d6862fd390ec60605ee3bc9d%40pckswarms.ch.
> --
> ~slg
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/b6a89a78-c92c-41c1-960a-49d64d8a5366n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/404c8fad-befc-4b01-8728-48ce9b912117%40mtasv.net.


Re: [racket-users] Is there a good Racket DSL alternative to Image Magick?

2021-05-11 Thread Robert Haisfield
Alternatively, does the normal images function for Racket work? When I was 
looking through the documentation I saw a lot about creating shapes but not 
about using image files.

On Tuesday, May 11, 2021 at 2:03:33 PM UTC-6 Robert Haisfield wrote:

> Hmm does the video language work for image files? If so, then I think it 
> might work.
>
> On Tuesday, May 11, 2021 at 9:03:35 AM UTC-6 Sage Gerard wrote:
>
>> I hope that has what Robert is looking for, but I don't recognize that 
>> speech. In fact, I have a false memory, because I'm not finding the speech 
>> I'm looking for on https://con.racket-lang.org/2018/#speakers
>> On 5/11/21 10:19 AM, Bruce O'Neel wrote:
>>
>> This might be it.
>>
>> (seventh RacketCon): Leif Andersen -- Movies as Programs: The Story of a 
>> Racket - YouTube 
>> 
>>
>>
>>
>>
>>
>>
>> *11 May 2021 15:30 Sage Gerard  wrote:*
>>
>> I don't know of one off hand, but I believe RacketCon 2018 (?) included a 
>> presenter that showed a PostScript-like DSL for designers and artists.  If 
>> pict not cover your needs, maybe dig into the presentations?
>>
>> Failing that, can you show what you'd hope the syntax would look like? 
>> That would probably help point you in the right direction,
>> On 5/11/21 9:26 AM, Robert Haisfield wrote:
>>
>> I have to do a bunch of .jpg and .png image resizings and was looking for 
>> a programmatic way to do it. Is their a Racket DSL for this? --
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/racket-users/0d576c32-7d4d-4944-9cbc-c12f04406fccn%40googlegroups.com
>>  
>> 
>> .
>>
>> -- ~slg --
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/racket-users/6e3aacdc-015b-2484-3bee-0c08e3fb612d%40sagegerard.com
>>  
>> 
>> .
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users...@googlegroups.com.
>>
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/racket-users/1620742795-01b81de5d6862fd390ec60605ee3bc9d%40pckswarms.ch
>>  
>> 
>> .
>>
>> --
>> ~slg
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/b6a89a78-c92c-41c1-960a-49d64d8a5366n%40googlegroups.com.


Re: [racket-users] Is there a good Racket DSL alternative to Image Magick?

2021-05-11 Thread Robert Haisfield
Hmm does the video language work for image files? If so, then I think it 
might work.

On Tuesday, May 11, 2021 at 9:03:35 AM UTC-6 Sage Gerard wrote:

> I hope that has what Robert is looking for, but I don't recognize that 
> speech. In fact, I have a false memory, because I'm not finding the speech 
> I'm looking for on https://con.racket-lang.org/2018/#speakers
> On 5/11/21 10:19 AM, Bruce O'Neel wrote:
>
> This might be it.
>
> (seventh RacketCon): Leif Andersen -- Movies as Programs: The Story of a 
> Racket - YouTube 
> 
>
>
>
>
>
>
> *11 May 2021 15:30 Sage Gerard  wrote:*
>
> I don't know of one off hand, but I believe RacketCon 2018 (?) included a 
> presenter that showed a PostScript-like DSL for designers and artists.  If 
> pict not cover your needs, maybe dig into the presentations?
>
> Failing that, can you show what you'd hope the syntax would look like? 
> That would probably help point you in the right direction,
> On 5/11/21 9:26 AM, Robert Haisfield wrote:
>
> I have to do a bunch of .jpg and .png image resizings and was looking for 
> a programmatic way to do it. Is their a Racket DSL for this? --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/0d576c32-7d4d-4944-9cbc-c12f04406fccn%40googlegroups.com
>  
> 
> .
>
> -- ~slg --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/6e3aacdc-015b-2484-3bee-0c08e3fb612d%40sagegerard.com
>  
> 
> .
>
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/1620742795-01b81de5d6862fd390ec60605ee3bc9d%40pckswarms.ch
>  
> 
> .
>
> --
> ~slg
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/1a29a309-7609-4e90-b282-0636f1a7c058n%40googlegroups.com.


Re: [racket-users] Is there a good Racket DSL alternative to Image Magick?

2021-05-11 Thread Sage Gerard
I hope that has what Robert is looking for, but I don't recognize that speech. 
In fact, I have a false memory, because I'm not finding the speech I'm looking 
for on https://con.racket-lang.org/2018/#speakers

On 5/11/21 10:19 AM, Bruce O'Neel wrote:

> This might be it.
>
> [(seventh RacketCon): Leif Andersen -- Movies as Programs: The Story of a 
> Racket - 
> YouTube](https://www.youtube.com/watch?v=OZXslNVaCOQ=PLXr4KViVC0qIgkwFFzM-0we_aoOfAl16Y=3)
>
> 11 May 2021 15:30 Sage Gerard 
> [](mailto:s...@sagegerard.com) wrote:
>
>> I don't know of one off hand, but I believe RacketCon 2018 (?) included a 
>> presenter that showed a PostScript-like DSL for designers and artists. If 
>> pict not cover your needs, maybe dig into the presentations?
>>
>> Failing that, can you show what you'd hope the syntax would look like? That 
>> would probably help point you in the right direction,
>>
>> On 5/11/21 9:26 AM, Robert Haisfield wrote:
>>
>>> I have to do a bunch of .jpg and .png image resizings and was looking for a 
>>> programmatic way to do it. Is their a Racket DSL for this? --
>>> You received this message because you are subscribed to the Google Groups 
>>> "Racket Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to racket-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> [https://groups.google.com/d/msgid/racket-users/0d576c32-7d4d-4944-9cbc-c12f04406fccn%40googlegroups.com](https://groups.google.com/d/msgid/racket-users/0d576c32-7d4d-4944-9cbc-c12f04406fccn%40googlegroups.com?utm_medium=email_source=footer).
>>
>> -- ~slg --
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> [https://groups.google.com/d/msgid/racket-users/6e3aacdc-015b-2484-3bee-0c08e3fb612d%40sagegerard.com](https://groups.google.com/d/msgid/racket-users/6e3aacdc-015b-2484-3bee-0c08e3fb612d%40sagegerard.com?utm_medium=email_source=footer).
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> [https://groups.google.com/d/msgid/racket-users/1620742795-01b81de5d6862fd390ec60605ee3bc9d%40pckswarms.ch](https://groups.google.com/d/msgid/racket-users/1620742795-01b81de5d6862fd390ec60605ee3bc9d%40pckswarms.ch?utm_medium=email_source=footer).

--
~slg

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/c911fc49-034e-7159-8a14-7fc5466122b0%40sagegerard.com.


Re: [racket-users] Is there a good Racket DSL alternative to Image Magick?

2021-05-11 Thread Bruce O'Neel

This might be it.  
  

  
  
  
  
  
  

> I don't know of one off hand, but I believe RacketCon 2018 (?) included a 
> presenter that showed a PostScript-like DSL for designers and artists.  If 
> pict not cover your needs, maybe dig into the presentations?  
> Failing that, can you show what you'd hope the syntax would look like? That 
> would probably help point you in the right direction,  
> On 5/11/21 9:26 AM, Robert Haisfield wrote:  
> > I have to do a bunch of .jpg and .png image resizings and was looking for a 
> > programmatic way to do it. Is their a Racket DSL for this? --  
> >  You received this message because you are subscribed to the Google Groups 
> > "Racket Users" group.  
> >  To unsubscribe from this group and stop receiving emails from it, send an 
> > email to 
> > [racket-users+unsubscr...@googlegroups.com](mailto:racket-users+unsubscr...@googlegroups.com).
> >   
> >  To view this discussion on the web visit .
> --  ~slg --  
>  You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.  
>  To unsubscribe from this group and stop receiving emails from it, send an 
> email to 
> [racket-users+unsubscr...@googlegroups.com](mailto:racket-users+unsubscr...@googlegroups.com).
>   
>  To view this discussion on the web visit .
  

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/1620742795-01b81de5d6862fd390ec60605ee3bc9d%40pckswarms.ch.


Re: [racket-users] Is there a good Racket DSL alternative to Image Magick?

2021-05-11 Thread Sage Gerard
I don't know of one off hand, but I believe RacketCon 2018 (?) included a 
presenter that showed a PostScript-like DSL for designers and artists. If pict 
not cover your needs, maybe dig into the presentations?

Failing that, can you show what you'd hope the syntax would look like? That 
would probably help point you in the right direction,

On 5/11/21 9:26 AM, Robert Haisfield wrote:

> I have to do a bunch of .jpg and .png image resizings and was looking for a 
> programmatic way to do it. Is their a Racket DSL for this? --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> [https://groups.google.com/d/msgid/racket-users/0d576c32-7d4d-4944-9cbc-c12f04406fccn%40googlegroups.com](https://groups.google.com/d/msgid/racket-users/0d576c32-7d4d-4944-9cbc-c12f04406fccn%40googlegroups.com?utm_medium=email_source=footer).

--
~slg

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/6e3aacdc-015b-2484-3bee-0c08e3fb612d%40sagegerard.com.


[racket-users] Is there a good Racket DSL alternative to Image Magick?

2021-05-11 Thread Robert Haisfield
I have to do a bunch of .jpg and .png image resizings and was looking for a 
programmatic way to do it. Is their a Racket DSL for this?

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/0d576c32-7d4d-4944-9cbc-c12f04406fccn%40googlegroups.com.


Re: [racket-users] copy-file does not preserve file attributes on linux version of Racket...

2021-05-11 Thread Matthew Flatt
At Mon, 10 May 2021 17:16:53 -0700 (PDT), Don Green wrote:
> From Racket doc: "File permissions are transferred from src to dest; on 
> Windows, the modification time of src is also transferred to dest."
> 
> Is the above line meant to imply that a unix/linux version of Racket will 
> NOT preserve file attributes using copy-file?

Yes, that's right.

The intent is to mirror the most common convention for file copies on
each platform. On Unix, `cp` sets the copied file's timestamp to the
current time. On Windows, `copy` gives the copy the original file's
timestamp. (These conventions are also reflected by the system APIs
that racket uses.)


Matthew

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/20210511051842.d4%40sirmail.smtps.cs.utah.edu.