From c7bd43fb216440fa940583fb218446b053f1eea6 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 6 Oct 2010 12:10:42 -0400 Subject: dal_images, where image dimensions are set in an object, use those (+changelog & version date) --- CHANGELOG_v2 | 6 +++++- data/doc/sisu/v2/CHANGELOG | 6 +++++- data/sisu/v2/v/version.yml | 4 ++-- lib/sisu/v2/dal_images.rb | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG_v2 b/CHANGELOG_v2 index 8e5d5216..76d16b5c 100644 --- a/CHANGELOG_v2 +++ b/CHANGELOG_v2 @@ -12,7 +12,7 @@ Reverse Chronological: %% Development branch UNSTABLE -%% 2.7.3.orig.tar.gz (2010-10-03:39/7) +%% 2.7.3.orig.tar.gz (2010-10-06:40/3) http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.3.orig.tar.gz sisu_2.7.3.orig.tar.gz sisu_2.7.3-1.dsc @@ -24,6 +24,10 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.3.orig.tar.gz implicit calling of -m (creation of document abstraction for processing), (e.g. when --source or --sisupod is called on its own). + * dal_images, where image dimensions are set in an object, use those, (rather + than those determined by imagemagick or graphicsmagick). [note: all must be + set in an object, or none] + * options, a few aliases added (long options) * urls, cleaning diff --git a/data/doc/sisu/v2/CHANGELOG b/data/doc/sisu/v2/CHANGELOG index c612e4c1..f41ae081 100644 --- a/data/doc/sisu/v2/CHANGELOG +++ b/data/doc/sisu/v2/CHANGELOG @@ -12,7 +12,7 @@ Reverse Chronological: %% Development branch UNSTABLE -%% 2.7.3.orig.tar.gz (2010-10-03:39/7) +%% 2.7.3.orig.tar.gz (2010-10-06:40/3) http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.3.orig.tar.gz sisu_2.7.3.orig.tar.gz sisu_2.7.3-1.dsc @@ -24,6 +24,10 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.3.orig.tar.gz implicit calling of -m (creation of document abstraction for processing), (e.g. when --source or --sisupod is called on its own). + * dal_images, where image dimensions are set in an object, use those, (rather + than those determined by imagemagick or graphicsmagick). [note: all must be + set in an object, or none] + * options, a few aliases added (long options) * urls, cleaning diff --git a/data/sisu/v2/v/version.yml b/data/sisu/v2/v/version.yml index 216c7b6a..6ad9e890 100644 --- a/data/sisu/v2/v/version.yml +++ b/data/sisu/v2/v/version.yml @@ -1,5 +1,5 @@ --- :version: 2.7.3 -:date_stamp: 2010w39/7 -:date: "2010-10-03" +:date_stamp: 2010w40/3 +:date: "2010-10-06" :project: SiSU diff --git a/lib/sisu/v2/dal_images.rb b/lib/sisu/v2/dal_images.rb index 0b6d2b1e..ed537f22 100644 --- a/lib/sisu/v2/dal_images.rb +++ b/lib/sisu/v2/dal_images.rb @@ -83,7 +83,7 @@ module SiSU_images unless dob.is =~/^table/ dob.obj.strip! if dob.obj =~/#{Mx[:lnk_o]}\s*\S+\.(?:png|jpg|gif)(?:\s*|\s+.+)?#{Mx[:lnk_c]}(?:#{Mx[:url_o]}\S+?#{Mx[:url_c]}|image)/ - if dob.obj !~/#{Mx[:lnk_o]}\s*\S+\.(?:png|jpg|gif)\s+\d+x\d+\s+/ + if dob.obj !~/#{Mx[:lnk_o]}\s*\S+\.(?:png|jpg|gif)\s+\d+x\d+/ m=/#{Mx[:lnk_o]}\s*(\S+\.(?:png|jpg|gif))/ if imagemagick_ imgs=dob.obj.scan(m).flatten -- cgit v1.2.3