Hi

Nice it's working. I found how to rotate image with imagemagick, I don't know 
if it's 
something you can use:
https://stackoverflow.com/questions/19456036/detect-exif-orientation-and-rotate-image-using-imagemagick[1]

I don't think ActiveScaffold works with rails 7.0 yet, I haven't tested, but 
every version 
usually has some issues.

Regards

El miércoles, 16 de febrero de 2022 20:01:28 (CET) Gloufy escribió:
> thank you so much for that !!
> 
> Do you know how to rotate image from the exif, because sometime the image
> is not in the right orientation :(
> 
> Thank you so much for all
> 
> ahhh do you know if active scaffold is working with rails 7.0 ?
> 
> Le lundi 17 janvier 2022 à 15:33:05 UTC+1, [email protected] a écrit :
> > No, I meant that module defined in
> > lib/active_scaffold/bridges/active_storage/
> > active_storage_helpers.rb, which has thumbnail_variant mattr accessor.
> > 
> > I was out of home and I couldn't test it before answering. I have tested
> > now
> > and ActiveStorageBridgeHelpers is not loaded yet when initializer runs.
> > You
> > could add require 'active_scaffold/bridges/active_storage/
> > active_storage_helpers' in initializer before that line, but I guess it
> > should
> > be fixed in ActiveScaffold. I could add autoload lines in
> > lib/active_scaffold/
> > bridges/active_storage.rb, but I guess it's better to define the setting
> > in
> > ActiveScaffold::Bridges::ActiveStorage class.
> > 
> > I have changed thumbnail_variant definition in master branch, you can
> > update
> > and use this line in initializer:
> > 
> > ActiveScaffold::Bridges::ActiveStorage.thumbnail_variant =
> > {resize_to_limit:
> > [nil, 350]}
> > 
> > Regards,
> > Sergio
> > 
> > El jueves, 13 de enero de 2022 21:16:28 (CET) Gloufy escribió:
> > > i'v got a error config/initializers/active_scaffold.rb:3:in `<main>':
> > > *uninitialized constant
> > > ActiveScaffold::Bridges::ActiveStorage::ActiveStorageBridgeHelpers
> > > (**NameError**)*
> > > 
> > > *Did you mean? ActiveStorageVariant*
> > > 
> > > Le lundi 3 janvier 2022 à 01:28:14 UTC+1, [email protected] a écrit :
> > > > I think you shouldn't define mattr accessor, it's already defined.
> > 
> > > > I think it should work with only one line in initializer:
> > ActiveScaffold::Bridges::ActiveStorage::ActiveStorageBridgeHelpers.thumbna
> > 
> > > > il_variant = {resize_to_limit: [nil, 350]}
> > > > 
> > > > El jue., 30 dic. 2021 19:03, Gloufy <[email protected]> escribió:
> > > >> Hi Sergio !
> > > >> 
> > > >> Where I can exactly orrveride ? I didn't manage to do what.
> > > >> 
> > > >> 
> > > >> module ActiveScaffold
> > > >> 
> > > >> module Bridges
> > > >> 
> > > >> class ActiveStorage
> > > >> 
> > > >> module ActiveStorageBridgeHelpers
> > > >> 
> > > >> mattr_accessor :thumbnail_variant
> > > >> 
> > > >> self.thumbnail_variant = {resize_to_limit: [nil, 30]} to
> > > >> {resize_to_limit:
> > > >> [nil, 350]}
> > > >> 
> > > >> Le mercredi 18 mars 2020 à 13:25:34 UTC+1, [email protected] a
> > 
> > écrit :
> > > >>> I think you can override that helper in your controller helper, or
> > > >>> ApplicationHelper. I think it should work as dragonfly does, there
> > > >>> should
> > > >>> be a thumbnail_variant setting in
> > > >>> ActiveScaffold::Bridges::ActiveStorage::ActiveStorageBridgeHelpers,
> > > >>> default
> > > >>> to something like {resize_to_limit: [nil, 30]} to use same values as
> > > >>> dragonfly bridge.
> > > >>> 
> > > >>> 
> > > >>> 
> > > >>> I have added this to master branch. However, I have checked docs for
> > > >>> activestorage in rails 5.2 and I don't see resize_to_limit option,
> > 
> > did
> > 
> > > >>> it
> > > >>> changed in 6.0?
> > > >>> 
> > > >>> 
> > > >>> 
> > > >>> I'm not sure what you want about the other question. Do you want to

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/activescaffold/2624406.mvXUDI8C0e%40pc-sergio.

Reply via email to