Image rendition customizing height and width
Hello i have problem with image rendition i dont know how to enable it is there any feature i must activate or its just query
coz i type the
URL : http://server name/SiteAssetes/img/Filename.jpg?Rendition=2
i cant get the resized image and if there any way to specify the height and the width and i tried from site setting from look and feel i cant find it the image rendition .
not
programmatically i think its afeature from sharepoint 2013 you can play with image size and all that stuff with only URl but its not working with me
Similar Messages
-
I am trying to create a instant quote tool for my site.. so customer type in there height and width and a price appears but I have no clue where to start.. is there any tutorial or would someone kindly give me some advice on how to do this on dreamweaver. I havent used Dreamweaver in years and I cant even remember anything now
Kind RegardsWell this is what I have soo far.. so I want to enter the height /width then if they want to add extras such as fixing options and cut out it will add to the product price ????
<!doctype html>
<html>
<head>
<div class="summary entry-summary">
<h1 itemprop="name" class="product_title entry-title">Ral 1000</h1><div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<meta itemprop="price" content="160" />
<meta itemprop="priceCurrency" content="GBP" />
<link itemprop="availability" href="http://schema.org/InStock" />
</div><div itemprop="description">
<script src="https://apis.google.com/js/plusone.js" type="text/javascript">
</script>
<script type="text/javascript">gapi.plusone.go();</script>
<p>6mm, low iron, toughened glass, PAR
</div>
<div class="shortcode-google-plusone"><div class="g-plusone" data-size="standard" data-annotation="none"></div></div><!--/.shortcode-google-plusone-->
</p>
</div>
<form class="cart" method="post" enctype='multipart/form-data'>
<table id="price_calculator" class="simple_price_calculator">
<tr>
<td style="text-align:right;">
</td>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script>
$(document).ready(function() {
$('#width').keyup(function() {
var height = $('#height').val();
var width = $('#width').val();
var price = (height * width / 1000000 * 325).toFixed(2);;
$('.price').html('Product price: £' + price);
</script>
</head>
<body>
<p><label for="height">Height (mm)</label>
<input type="text" name="height" id="height">
</p>
<p>
<label for="width">Width (mm)</label>
<input type="text" name="width" id="width">
</p>
<p>
</p>
</body>
</html>
</tr>
</table>
<div class=" product-addon product-addon-add-fixing-option">
<h3 class="addon-name">Add Fixing Option </h3>
<p class="form-row form-row-wide addon-wrap-1738-add-fixing-option">
<select class="addon addon-select" name="addon-1738-add-fixing-option">
<option value="">Select an option...</option>
<option data-price="5" value="silicone-adhesive-tube" >Silicone Adhesive Tube (<span class="amount">£0.00</span>)</option>
<option data-price="5" value="screws-and-drill-holes" >Screws and Drill Holes (<span class="amount">£6.00</span>)</option>
</select>
</p>
<div class="clear"></div>
</div><div class=" product-addon product-addon-add-extra-layer-multi-coloured-fine-glitter">
<h3 class="addon-name">Add Cut Out and Notches </h3>
<p class="form-row form-row-wide addon-wrap-1738-add-extra-layer-multi-coloured-fine-glitter">
<select class="addon addon-select" name="addon-1738-add-extra-layer-multi-coloured-fine-glitter">
<option value="">Select an option...</option>
<option data-price="8" value="1" >1 (<span class="amount">£25.00</span>)</option>
<option data-price="15" value="2" >2 (<span class="amount">£50.00</span>)</option>
<option data-price="25" value="3" >3 (<span class="amount">£75.00</span>)</option>
<option data-price="25" value="4" > (<span class="amount">£100.00</span>)</option>
</select>
</p>
</p><p class="price">Product Price: £</p>
<div class="clear"></div>
</div><div id="product-addons-total" data-type="simple" data-price="160"></div>
<input type="hidden" name="add-to-cart" value="1738" />
<button type="submit" class="single_add_to_cart_button button alt">Add to cart</button>
</form>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
</body>
</html> -
How to resize and maintain height and width ratio IR image column
Hello, I am upgrading from 3.2 to 4.1 reports that include images in report columns. I have had good success with this except for one thing. If the height and width is fixed it distorts the photos, and if I do not have fixed dimensions the image may be too large depending on the original dimensions of the :P1_PHOTO item which is File Browse... BLOB column. I do not want to restrict users ability to upload large image files, or files with different dimensions, but I want them to display as a thumbnail size proportional to the original dimensions in the report, or maybe I need a different approach? Report region template is No Template. I appreciate any suggestions.
select decode(nvl(dbms_lob.getlength(photo),0),0,null,'<img src="'||apex_util.get_blob_file_src('P1_PHOTO',id)||'" height="75" width="75"/>') photo from table.
I tried using percent i.e.: width="10%" that does not work.
I have tried several variations of <style> in page HTML header to change column width, but the image size does not change.
<style>
td[headers="PHOTO"] {
width:75px;
</style>
<style>
#apexir_PHOTO{width: 75px;}
</style>
Thanks.Try to go with max-width / max-height. However, if you have IE browser, hang on for pain. For some ideas, some links:
http://wordpress.mfields.org/2011/scaling-images-in-ie8-with-css-max-width/ (ignore object-fit, it is not yet supported on most browser)
http://stackoverflow.com/questions/3915219/max-width-on-img-tag-not-working-in-ie8
etc. Be sure to try out your chosen solution on the target browser(s)!
IE is just nasty :(
What i have done before is not to have my browser scale my images, especially when the images can be large(r) and you expect quite some traffic. All those extra (kilo)bytes won't help it load faster. I just added an extra column in the table, like photo_thumb, and create a scaled version of the uploaded picture when it is being inserted.
For example, i have the following process on my apex page, and i'm using wwv_flow_files.
Have some code:
IF :P3_FIND_PHOTO IS NOT NULL THEN
DECLARE
v_id number;
v_small_photo blob;
v_large_photo blob;
v_mime_type apxt_contacts_img.mime_type%type;
v_content_type apxt_contacts_img.content_type%type;
BEGIN
SELECT blob_content a, blob_content b, mime_type, content_type
INTO v_small_photo, v_large_photo, v_mime_type, v_content_type
FROM wwv_flow_files
WHERE name = :P3_FIND_PHOTO;
IF lower(v_mime_type) NOT IN ('image/jpg', 'image/jpeg') THEN
raise_application_error(-20001, 'File for upload is not a jpg!');
END IF;
-- Rezise the photo so that it is proportionally 125*125
-- ordimage is an oracle type able to manipulate all sorts of pictures
ordimage.process(v_small_photo, 'maxScale=125 125');
-- If contact is of type personnel, then no need to store
-- a large photo since it wont be displayed
IF :P3_CONTACT_TYPE_ID = 2 THEN
v_large_photo := NULL;
END IF;
-- Delete previously uploaded picture
IF :P3_ID IS NOT NULL THEN
DELETE FROM apxt_contacts_img
WHERE contact_id = :P3_ID;
END IF;
-- Insert the data into the contacts_img table as a
-- SELECT from WWV_FLOW_FILES
INSERT INTO apxt_contacts_img
(contact_id,
image_name,
mime_type,
content_type,
filename,
small_photo,
large_photo)
VALUES
(:P3_ID,
:P3_LASTNAME,
v_mime_type,
v_content_type,
:P3_FIND_PHOTO,
v_small_photo,
v_large_photo);
-- Remove the image from the apex wwv_flows_files table
DELETE FROM wwv_flow_files WHERE name = :P3_FIND_PHOTO;
END;
END IF; -
Trying to determine the height and width of an image.
Hi Everyone,
I am currently trying to work out the height and width of a number of pictures. I have tried a couple of techniques. One involved using BufferedImages, which kept on throwing null pointer exceptions. So I am now tring to use the Image class from java.awt.Image. However I need to use an ImageObserver or some such thing, of which I have absolutely no knowledge. If there is anybody out there who knows how to gather the information I speak of from a number of photos, and is feeling kind enough to impart their knowledge to me it will be greatly appreciated. Thanks.
Regards
DavidWell, maybe your problem is loading in the images, but I'm assuming you know what your question is since I don't feel like going into what ImageObserver does (That's what google is for).
Anyways, to get the height and width of an image you do this:
You initialize your image:
Image image = getImage("file.jpg") //I don't remember the if this is correct, it's just my memory.To get the dimensions"
image.getWidth();
image.getHeight();If these return 0 it's more than likely because the image hasn't loaded correctly, which is why you need ImageObserver (IIRC there is a better API in the new ImageIO library, check the API).
Best of luck.
Virum -
Hello All,
I wanted to fnd out the width and the height of an image (.jpg).
Please could anybody let me know if there are any function modules or any other ways to find it out.
Thanks and Regards,
SushmithaHi Vikrant,
I am using fileupload UI element.
I wanted to determine the height and width of the image internally in webdynpro application, after which I can allow them to save.
Thanks and Regards,
Sushmitha
Edited by: Sushmitha S on Jun 19, 2009 1:49 PM -
Height and width of image loaded into blob?
i am loading images into my database which is all working fine. in parts of my app i am displaying these images so i am wondering is there a way to get the dimensions (height an width) of the image you are loading in so that when it comes time to display you can scale as needed but the aspect ratio is the same so then the image is not distorted by just putting some random values for height and width.
<br><br>
eg
instead of
<br><br>
select decode(file_type,'I','<imge src="OWNER.download_file?p_file=' || nvl(file_id,0) ||'" height="100" width="100" />','') from project_file
where file_id = :P31_FILE_ID
<br><br>
i want to replace 100 with values from columns in table that were loaded at time of save
Message was edited by:
victorpthanks scott. is it correct to say that this example is storing the image at whatever size the user puts in the width and height boxes on screen? thats what it looks like to me anyway. i see there are functions to get these but does the user have to enter them still? it will be just what i need if indeed I do need it!
Yes, that's correct. Of course you could modify the code so that you choose the size of the image, and not allow the user to change it.
Thanks,
- Scott - -
How do I view the height and width of an image as I adjust the crop handles
How do I view the height and width in pixels of an image as I adjust the crop handles before I actually crop the image?
If you are in Photoshop CC, go into Preferences, click Interface, and turn on Show Transformation Values. In the picture below, setting it to Top Right means the pixel height and width appear to the Top Right of the Crop tool pointer.
(Edit: The picture only shows Height because the bottom edge is being dragged. If a corner was being dragged it would say H and V.) -
Can PDF's be resized? (height and width)
I have a large PDF booklet that I would like the height and width reduced. Is this possible?
If Dov see's this, I'll get reprimanded, but...I do not see him here often.
Downscaling will not have the caveat of upscaling, where there would be an effective loss of image/pixel resolution.
Obviously for a one time print, you could use the page scaling from the print dialog. If you need a more permanent solution, you could set up a custom page size and print to pdf, effectively re-frying the pdf. The result would include a loss of color management, multimedia content, bookmarks(?), live transparency and other behind the scenes elements within a pdf. To much extent, it would appear and behave as a typical pdf, but advanced features are stripped out when handling a document this way. (Sometimes, for the better, IMO)
Optionally, preferably, and untested, I would place the pdf into InDesign, scale accordingly and Export to pdf. Given the proper export settings, I believe more original structure would be maintained. -
Hello guys!
It is any way to set that Height and Width default values in any configuration file? We need set our custom default size.
Thanks for your time.
Regards,
ArielBy default its 300*400 (H*W), i don't think we can set default value in any configuration file.
Please try to change the logic accordingly in js file and redeploy it in the application server.
analytics\res\b_mozilla\views\chart\dlgcommoncharteditors.js
Line num : 431 - 439
if (H == 300)
tCF.removeAttribute('height');
else
tCF.setAttribute('height', H);
if (W == 450)
tCF.removeAttribute('width');
else
tCF.setAttribute('width', W);
Remember to do the changes everytime during upgrades and patches.
rgds
vinod -
I'm trying to write lingo, that tells a certian object, upon
the mouse leaving, to scale down by x amount. However I want it to
be animated and happen over time. But I want it to all be in Lingo,
within the cast member. I have it looking like this right now, but
this just makes it go from one size, immediately to a smaller size.
Like I said, I would like this to happen over a period of say, .5
seconds.
on mouseLeave me
sprite(2).height = 438
sprite(2).width = 292
end
I'm doing this for something like a portfolio. You can roll
over images and they get larger, but when you roll off of them,
they get smaller. I just want them to get smaller over time, and
not immediately. Any help would be great. Thanks.
~QuadpolarSince mouseLeave only happens once it can't easily be used to
animate
something... so, you need to set up a system where the
shrinking happens
on an event that happens more often (like enterFrame)
property pShrink
on beginSprite me
pShrink=0 --set it to not shrink when it starts up
end
on mouseLeave me
pShrink=1 --start shrinking now
end
on enterFrame me
if pShrink=1 then
if sprite(2).height>400 then
sprite(2).height=sprite(2).height-2
sprite(2).width=sprite(2).width-2
else
pShrink=0 --now it will stop shrinking
end if
end if
end
This script kind of assumes that the sprite is square, since
it adjusts
the height and width evenly. Change those lines where the
width and
height are lowered by 2 to a greater number to make it go
faster or a
lower number to make it go slower (it has to be an integer,
so 1 is as
slow as it gets). Also, if the height and width are not
equal, then
adjust those same numbers accordingly. I also chose the
number 400
fairly arbitrarily.. that should be whatever height the
sprite should be
when you want it to stop shrinking. -
Height and width question in an applet
I have loaded a picture into an applet. Is it possible to get the pictures height and width?
I assume you loaded it into an image. In this case, you can call Image.getHeight() and Image.getWidth(). If you get -1 returned, search for a useful thread on ImageObserver.
-
Lightbox image 100% browser height or width
Hello everybody,
I am new here but I have a question regarding the lightbox. I am searching for a way to show an image in a lightbox that presents the image 100% browser height or width. The lightbox in muse only can show an image in native format. So if the image is too large for the height or width of the browser, the image will be cropped.
Is there a widget or another way to make the image scale in a lightbox with the browser height and width?
I hope someone could help me with this.You can use any other slide show with full width as because lightbox will show the original image centrally on screen.
Thanks,
Sanjit -
In Photoshop CC, on a mac...
When using the marquee selection tool, a little black box pops up next to the curser and displays in real time, the height and width of the selection. The same annoying box also appears when dragging an item with the move tool, displaying the numerical location of the cursor. Is there anyway to turn off the display of that little black box? It is driving me bonkers.Under the preferences cmd/ctrl-k click on "Interface". At the bottom of the UI is a drop down box for show transformation. Set that to "Never"
-
How to change the height and width of a control?
Dear all,
is there anyway to change the height and width of a control?
In the property nodes, i am just able to read the bound values but cudnt write to it.
How can i set the bound values for a control?
Thanks,
RiteshNot all controls can be sized this way. For example to change the vertical size of a simple numeric, you would need to change the font size.
LabVIEW Champion . Do more with less code and in less time . -
How to determine height and width of a JScrollPane client
Hi,
I wish to display a webpage in a JScrollPane and wish to determine the height and width of the HTML content so that I can use the information to generate PDF and control the content on each page. Can anybody let me know how I can do this?
Thanks in advance
Prashant BajJEditorPane and getSize()?
Maybe you are looking for
-
Airport self-assigned IP not connected to internet
Hi, Could someone please help with my problem - I have been hacking away at this for 2 nights with no success. I have 3 computers trying to connect to the internet using an Airport Extreme. -AirPort Extreme is set up and not reporting any problems -m
-
Hi all, I'm generating a report in xml publisher 5.6.2, i have 4 datamodels inside the report and i'm using the Concatenated SQL Data Source option, then i generate the xml file to add it to the rtf template, the problem is that when i preview the re
-
Hi, Can anybody worked on EDI 943 Transaction set. What is the IDOC used to post the EDI 943 data. Thanks & Regards Vijayanand Poreddy
-
Am in the process of establishing all of my iPhoto pics on an external HD. The problem is over the years I have managed to make 1-4 duplicates of most of my pictures. I noticed when I searched on spotlight, went from 2700 pics on iPhoto to 11900(!),
-
How do you convert OPC servers 2012 opf file to OPC servers 2013?
When I upgraded from LV 2012 to LV 2013 SP1 my NI OPC Servers 2012 was also involuntarily upgraded to 2013. Now my shared variables don't work. How do you migrate or convert a 2012 *.opf file to 2013? The only clue given by the software Help file is