How to get texture imported dimensions using python if max_texture_size was set?

I am trying to get texture imported size for my custom texture resource statistics.
I tried Texture2D.blueprint_get_size method and it does not returns imported size but Max In-Game size, affected by maximum texture size.
texture_details

# if texture's imported dimensions was 1024x1024,
my_texture2d.set_editor_property('max_texture_size', 512)
print(my_texture2d.blueprint_get_size_x())  # 512
my_texture2d.set_editor_property('max_texture_size', 0)
print(my_texture2d.blueprint_get_size_x())  # 1024

I could get imported size If I reset max_texture_size = 0 then revert.
But this approach makes the asset need to be regenerated twice.

Is there better way to read imported dimensions without changing its property?
Also I wonder if there’s any method to access other properties in the details section such as resource size, streamed, number of mips, and has alpha channel.

3 Likes