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

Image Resizing of Page images #373

Closed
pollingj opened this issue Apr 18, 2012 · 2 comments
Closed

Image Resizing of Page images #373

pollingj opened this issue Apr 18, 2012 · 2 comments
Assignees
Labels
Milestone

Comments

@pollingj
Copy link
Contributor

I have the following template code setup

{% capture page_image_url %}
    {% editable_file 'Page image', hint: "Upload an image (perfect size: 265px by 192px)", priority: 2 %}{% endeditable_file %}
{% endcapture %}

<img src="{{ page_image_url }}" alt="" />

Ideally I'd like to be able to add resize information to page_image_url

<img src="{{ page_image_url | resize: '265x192#' }}" alt="" />

However that fails. Am I doing something wrong, or is this not possible?

@dimonzozo
Copy link
Contributor

Tested this case with latest version. Problem still persist. It works with just image, but resize seems not working.

@ghost ghost assigned did Apr 20, 2012
did pushed a commit that referenced this issue Apr 20, 2012
@did
Copy link
Member

did commented Apr 20, 2012

hey guys, the problem was caused by leading/trailing empty spaces...

@did did closed this as completed Apr 20, 2012
pollingj added a commit to pollingj/engine that referenced this issue Apr 29, 2012
* 'master' of git://github.com/locomotivecms/engine: (24 commits)
  date picker was not correctly displayed in the popup form (has_many relationship) + previous form errors remained even within a fresh new popup
  content types can auto-reference them (in a many_to_many relationship for instance)
  performance improvements as described in locomotivecms#383
  improve the upgrade script (wip)
  bump version to 2.0.0.rc7
  new aloha-rails gem (fixing a typo in a css when precompiling it)
  the extends tag was not looking for the right fullpath (when localization is enabled) + sample in order to modify the tinyMCE settings in the back-office
  just a quick test to demonstrate the documentation was wrong (issue locomotivecms#377)
  simple media plugin for Aloha
  issue locomotivecms#321 (current_user) working. url_helpers removed.
  strange error
  strange error
  added current_user
  fix issue locomotivecms#373
  fix issue locomotivecms#374
  repair broken build
  fix issue locomotivecms#367
  fix issue locomotivecms#360
  added missing ru translations for upcoming 2.0 version
  clean the upgrade script (v1 -> v2)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants