Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit code gallery image sizes #5887

Open
drwells opened this issue Feb 11, 2018 · 5 comments
Open

Limit code gallery image sizes #5887

drwells opened this issue Feb 11, 2018 · 5 comments

Comments

@drwells
Copy link
Member

drwells commented Feb 11, 2018

When we generate HTML we need to provide bounds for some of the images. Users upload very high quality images (which is good) but they are too hard to see unless they are rescaled.

Example:

http://dealii.org/developer/doxygen/deal.II/code_gallery_Linear_Elastic_Active_Skeletal_Muscle_Model.html

The first two images are hundreds of times larger than the surrounding text in my web browser.

@jppelteret
Copy link
Member

Yeah, you're right. Those pictures are epically large! I had no success at resizing them using markdown (at least, none of the options rendered in Atom). If its possible to do this in a generic way then that would be great. If not then I'll open a PR wherein I include the images with the HTML syntax.

@drwells
Copy link
Member Author

drwells commented Feb 11, 2018

My best idea is that (like what I recently did in step-49) we should

<img src="path/to/image.png" alt="" height="200px">

which will cause things to render in a restricted size.

I think that we already generate similar HTML as part of the code gallery build process, so (if I am correct) forcing everything to have a set limit might not be that hard.

@bangerth
Copy link
Member

It's not the script that generates the doxygen input that is the problem here. Rather, for the case you link to above, it's the readme.md file:

...
The basic problem configuration, including a depiction of the underlying
muscle microstructural orientation, is (loosely) summarised in the following
image.
![Problem geometry](./doc/geometry/geometry.png)
...

That is, it needs to be fixed in the user submission. Do you know how to prescribe a size in markdown?

@jppelteret
Copy link
Member

No, I don't (at least, I couldn't find a portable solution). There's no reference to image sizing on Doxygen' markdown page. Should I just resize the images?

@jppelteret
Copy link
Member

Or, as @drwells suggested I could include the images using HTML...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants